home *** CD-ROM | disk | FTP | other *** search
/ comtecelectrical.ca / www.comtecelectrical.ca.tar / www.comtecelectrical.ca / infobots / Backup / MSOCache / All Users / 90000409-6000-11D3-8CFE-0150048383C9 / O1561415.CAB / MSO.DLL / 226 / 651 < prev   
Extensible Markup Language  |  2003-08-08  |  124KB  |  3,389 lines

  1. <?xml version="1.0" encoding="UTF-8" ?>
  2. <xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform" xmlns:r="urn:Microsoft.Search.Response" xmlns:f="urn:Microsoft.Search.Response.Form" xmlns:c="urn:Microsoft.Search.Response.Content" xmlns:d="urn:Microsoft.Search.Response.Document">
  3. <xsl:template name="ControlFrame">
  4. <xsl:param name="pContext" />
  5. <xsl:param name="fVertical" />
  6. <xsl:if test="$pContext">
  7. <xsl:choose>
  8. <xsl:when test="$fVertical = 'true'">
  9. <element layoutChildren="vertical" expandtofillhoriz="true" id="#2057" sheet="#Indent" >
  10. <xsl:apply-templates select="$pContext"/>
  11. </element>
  12. </xsl:when>
  13. <xsl:otherwise>
  14. <element layoutChildren="flow" id="#2057" expandToFillVert="false" expandToFillHoriz="true" alignChildren="left">
  15. <xsl:apply-templates select="$pContext"/>
  16. </element>
  17. </xsl:otherwise>
  18. </xsl:choose>
  19. </xsl:if>
  20. </xsl:template>
  21. <xsl:template name="Name" />
  22. <xsl:template name="Value" />
  23. <xsl:template name="List" />
  24. <xsl:template name="Label">
  25. <xsl:param name="sText" />
  26. <xsl:param name="tRtl" />
  27. <xsl:call-template name="Text">
  28. <xsl:with-param name="tRtl" select="$tRtl" />
  29. <xsl:with-param name="sText" select="$sText" />
  30. <xsl:with-param name="fWrapping" select="'true'"/>
  31. <xsl:with-param name="fPadding" select="'none'"/>
  32. <xsl:with-param name="sType" select="'label'"/>
  33. </xsl:call-template>
  34. </xsl:template>
  35. <xsl:template name="HyperLink">
  36. <xsl:param name="idControl" />
  37. <xsl:param name="sSubmitUrl" />
  38. <xsl:param name="sTooltip" />
  39. <xsl:param name="fWrapping" />
  40. <xsl:param name="fDisabled" />
  41. <xsl:param name="fPay" />
  42. <xsl:param name="tRtl" />
  43. <xsl:param name="sText" />
  44. <xsl:param name="sName" />
  45. <xsl:param name="sAction" />
  46. <xsl:param name="sQuery" />
  47. <xsl:param name="sSubQuery" />
  48. <xsl:param name="sFont" />
  49. <xsl:variable name="sFontName" >
  50. <xsl:if test="$sFont='arial'">Arial</xsl:if>
  51. <xsl:if test="$sFont='courier'">Courier</xsl:if>
  52. <xsl:if test="$sFont='lucida console'">Lucida Console</xsl:if>
  53. <xsl:if test="$sFont='marlett'">Marlett</xsl:if>
  54. <xsl:if test="$sFont='reference'">MS Reference Specialty</xsl:if>
  55. <xsl:if test="$sFont='reference serif'">MS Reference Sans Serif</xsl:if>
  56. <xsl:if test="$sFont='serif'">MS San Serif</xsl:if>
  57. <xsl:if test="$sFont='symbol'">Symbol</xsl:if>
  58. <xsl:if test="$sFont='times'">Times</xsl:if>
  59. <xsl:if test="$sFont='wingdings'">Wingdings</xsl:if>
  60. <xsl:if test="$sFont='bookshelf symbol'">Bookshelf symbol 7</xsl:if>
  61. <xsl:if test="$sFont='gothic'">MS PGothic</xsl:if>
  62. <xsl:if test="$sFont='unicode'">Lucida Sans Unicode</xsl:if>
  63. </xsl:variable>
  64. <xsl:variable name="sAccessibleName">
  65. <xsl:choose>
  66. <xsl:when test="$sName != ''">
  67. <xsl:value-of select="$sName" />
  68. </xsl:when>
  69. <xsl:otherwise>
  70. <xsl:value-of select="$sText" />
  71. </xsl:otherwise>
  72. </xsl:choose>
  73. </xsl:variable>
  74. <element id="#2066" layoutChildren="horizontal" childrenMargin="1"  >
  75. <xsl:if test="$fWrapping = 'true'">
  76. <xsl:attribute name="expandToFillHoriz">true</xsl:attribute>
  77. </xsl:if>
  78. <xsl:if test="$fPay = 'true'">
  79. <image src=":msotcid(9761)" />
  80. </xsl:if>
  81. <xsl:choose>
  82. <xsl:when test="not($sAction) or $sAction='' or $sAction='none'">
  83. <hyperlink isAcceleratorIgnored="true" text="{$sText}" id="#2061" screenTip="{$sTooltip}" screentipFormat="best" expandToFillHoriz="true" accessibleName="{$sAccessibleName}" >
  84. <xsl:if test="$tRtl != ''">
  85. <xsl:attribute name="direction">
  86. <xsl:choose>
  87. <xsl:when test="$tRtl = 'true'">RTL</xsl:when>
  88. <xsl:when test="$tRtl = 'false'">LTR</xsl:when>
  89. </xsl:choose>
  90. </xsl:attribute>
  91. </xsl:if>
  92. <xsl:if test="$fWrapping = 'true'">
  93. <xsl:attribute name="textAlign">WrapLeft</xsl:attribute>
  94. </xsl:if>
  95. <xsl:if test="$fDisabled = 'true'">
  96. <xsl:attribute name="isEnabled">false</xsl:attribute>
  97. </xsl:if>
  98. </hyperlink>
  99. </xsl:when>
  100. <xsl:when test="$sAction='requery' or $sAction='callback'">
  101. <hyperlink isAcceleratorIgnored="true" text="{$sText}" id="#2061" screenTip="{$sTooltip}" screentipFormat="best"  expandToFillHoriz="true" accessibleName="{$sAccessibleName}"  >
  102. <xsl:if test="$sAction='requery'">
  103. <xsl:attribute name="eventHandler">RefRequeryEL</xsl:attribute>
  104. </xsl:if>
  105. <xsl:if test="$sAction='callback'">
  106. <xsl:attribute name="eventHandler">RefCallbackEL</xsl:attribute>
  107. </xsl:if>
  108. <xsl:if test="$fWrapping = 'true'">
  109. <xsl:attribute name="textAlign">WrapLeft</xsl:attribute>
  110. </xsl:if>
  111. <xsl:if test="$fDisabled = 'true'">
  112. <xsl:attribute name="isEnabled">false</xsl:attribute>
  113. </xsl:if>
  114. <xsl:if test="$tRtl != ''">
  115. <xsl:attribute name="direction">
  116. <xsl:choose>
  117. <xsl:when test="$tRtl = 'true'">RTL</xsl:when>
  118. <xsl:when test="$tRtl = 'false'">LTR</xsl:when>
  119. </xsl:choose>
  120. </xsl:attribute>
  121. </xsl:if>
  122. </hyperlink>
  123. </xsl:when>
  124. <xsl:when test="$sAction='directed' or $sAction='auto' or $sAction='category'">
  125. <hyperlink isAcceleratorIgnored="true" text="{$sText}" ID="#2061" screenTip="{$sTooltip}" eventHandler="RefGoEL" screentipFormat="best"  expandToFillHoriz="true" accessibleName="{$sAccessibleName}"  accessibleValue="{$sQuery}" fontFace="{$sFontName}">
  126. <xsl:if test="$tRtl != ''">
  127. <xsl:attribute name="direction">
  128. <xsl:choose>
  129. <xsl:when test="$tRtl = 'true'">RTL</xsl:when>
  130. <xsl:when test="$tRtl = 'false'">LTR</xsl:when>
  131. </xsl:choose>
  132. </xsl:attribute>
  133. </xsl:if>
  134. <xsl:if test="$fDisabled = 'true'">
  135. <xsl:attribute name="isEnabled">false</xsl:attribute>
  136. </xsl:if>
  137. <xsl:if test="$fWrapping = 'true'">
  138. <xsl:attribute name="textAlign">WrapLeft</xsl:attribute>
  139. </xsl:if>
  140. <xsl:attribute name="accessibleDescription">:rcstring(0x01800037L)</xsl:attribute>
  141. <label id="#2098" isAcceleratorIgnored="true" text="{$sQuery}" isVisible="false" layoutPosition="none"  />
  142. <xsl:if test="$sSubQuery != ''">
  143. <label id="#2045" isAcceleratorIgnored="true" text="{$sSubQuery}" isVisible="false" layoutPosition="none"  />
  144. </xsl:if>
  145. </hyperlink>
  146. </xsl:when>
  147. <xsl:when test="$sAction='fetch'">
  148. <hyperlink isAcceleratorIgnored="true" text="{$sText}" ID="#2061" screenTip="{$sTooltip}" screentipFormat="best" expandToFillHoriz="true" accessibleName="{$sAccessibleName}"  accessibleValue="{$sQuery}" fontFace="{$sFontName}">
  149. <xsl:if test="$tRtl != ''">
  150. <xsl:attribute name="direction">
  151. <xsl:choose>
  152. <xsl:when test="$tRtl = 'true'">RTL</xsl:when>
  153. <xsl:when test="$tRtl = 'false'">LTR</xsl:when>
  154. </xsl:choose>
  155. </xsl:attribute>
  156. </xsl:if>
  157. <xsl:if test="$fDisabled = 'true'">
  158. <xsl:attribute name="isEnabled">false</xsl:attribute>
  159. </xsl:if>
  160. <xsl:if test="$fWrapping = 'true'">
  161. <xsl:attribute name="textAlign">WrapLeft</xsl:attribute>
  162. </xsl:if>
  163. <xsl:if test="$sQuery != ''">
  164. <xsl:attribute name="eventHandler">RefNavEL</xsl:attribute>
  165. </xsl:if>
  166. </hyperlink>
  167. <xsl:if test="$sQuery != ''">
  168. <label id="#2050" isAcceleratorIgnored="true" text="{$sQuery}" isVisible="false" layoutPosition="none"  />
  169. </xsl:if>
  170. </xsl:when>
  171. </xsl:choose>
  172. <label id="#2062" isAcceleratorIgnored="true" text="{$idControl}" isVisible="false" layoutPosition="none"  />
  173. <xsl:if test="$sSubmitUrl != ''">
  174. <label id="#2063" isAcceleratorIgnored="true" text="{$sSubmitUrl}" isVisible="false" layoutPosition="none"  />
  175. </xsl:if>
  176. </element>
  177. </xsl:template>
  178. <xsl:template name="Edit">
  179. <xsl:param name="idControl" />
  180. <xsl:param name="sSubmitUrl" />
  181. <xsl:param name="sAction" />
  182. <xsl:param name="sText" />
  183. <xsl:param name="tRtl" />
  184. <xsl:param name="tRtlControl" />
  185. <xsl:param name="fDisabled" />
  186. <xsl:param name="fPassword" />
  187. <xsl:param name="sValue" />
  188. <xsl:param name="fVertical" />
  189. <xsl:param name="iWidth" />
  190. <xsl:param name="iLimit" />
  191. <xsl:variable name="sLayout">
  192. <xsl:choose>
  193. <xsl:when test="$fVertical = 'true'">vertical</xsl:when>
  194. <xsl:otherwise>flow</xsl:otherwise>
  195. </xsl:choose>
  196. </xsl:variable>
  197. <element layoutChildren="{$sLayout}" id="#2047" expandToFillHoriz="true" expandToFillVert="false" alignChildren="left">
  198. <xsl:if test="$tRtl != ''">
  199. <xsl:attribute name="readingOrder">useDirection</xsl:attribute>
  200. <xsl:attribute name="direction">
  201. <xsl:choose>
  202. <xsl:when test="$tRtl = 'true'">RTL</xsl:when>
  203. <xsl:when test="$tRtl = 'false'">LTR</xsl:when>
  204. </xsl:choose>
  205. </xsl:attribute>
  206. </xsl:if>
  207. <xsl:if test="$sText != ''">
  208. <label isAcceleratorIgnored="true" text="{$sText}" id="#2051">
  209. </label>
  210. </xsl:if>
  211. <textbox text="{$sValue}" id="#2061" maxCharacters="{$iLimit}" accessibleName="{$sText}" >
  212. <xsl:if test="$tRtlControl != ''">
  213. <xsl:attribute name="readingOrder">
  214. <xsl:choose>
  215. <xsl:when test="$tRtlControl = 'true'">RTL</xsl:when>
  216. <xsl:when test="$tRtlControl = 'false'">LTR</xsl:when>
  217. </xsl:choose>
  218. </xsl:attribute>
  219. <xsl:attribute name="direction">
  220. <xsl:choose>
  221. <xsl:when test="$tRtlControl = 'true'">RTL</xsl:when>
  222. <xsl:when test="$tRtlControl = 'false'">LTR</xsl:when>
  223. </xsl:choose>
  224. </xsl:attribute>
  225. </xsl:if>
  226. <xsl:choose>
  227. <xsl:when test="$iWidth != ''">
  228. <xsl:attribute name="width">
  229. <xsl:value-of select="$iWidth * 5" />
  230. </xsl:attribute>
  231. </xsl:when>
  232. <xsl:otherwise>
  233. <xsl:attribute name="expandToFillHoriz">true</xsl:attribute>
  234. </xsl:otherwise>
  235. </xsl:choose>
  236. <xsl:if test="$fDisabled = 'true'">
  237. <xsl:attribute name="isEnabled">false</xsl:attribute>
  238. </xsl:if>
  239. <xsl:if test="$fPassword = 'true'">
  240. <xsl:attribute name="passwordCharacter">●</xsl:attribute>
  241. </xsl:if>
  242. <xsl:if test="$sAction = 'requery'">
  243. <xsl:attribute name="eventHandler">RefRequeryEL</xsl:attribute>
  244. </xsl:if>
  245. <xsl:if test="$sAction = 'callback'">
  246. <xsl:attribute name="eventHandler">RefCallbackEL</xsl:attribute>
  247. </xsl:if>
  248. </textbox>
  249. <label id="#2062" isAcceleratorIgnored="true" text="{$idControl}" isVisible="false" layoutPosition="none" />
  250. <xsl:if test="$sSubmitUrl != ''">
  251. <label id="#2063" isAcceleratorIgnored="true" text="{$sSubmitUrl}" isVisible="false" layoutPosition="none"  />
  252. </xsl:if>
  253. </element>
  254. </xsl:template>
  255. <xsl:template name="RadioGroup">
  256. <xsl:param name="pContext" /><xsl:param name="idControl" />
  257. <xsl:param name="sSubmitUrl" />
  258. <xsl:param name="sAction" />
  259. <xsl:param name="fDisabled" />
  260. <xsl:param name="sText" />
  261. <xsl:param name="tRtl" />
  262. <xsl:param name="tRtlGroup" />
  263. <element layoutChildren="vertical" expandToFillHoriz="true" textAlign="wrapLeft" >
  264. <xsl:if test="$tRtlGroup != ''">
  265. <xsl:attribute name="direction">
  266. <xsl:choose>
  267. <xsl:when test="$tRtlGroup = 'true'">RTL</xsl:when>
  268. <xsl:when test="$tRtlGroup = 'false'">LTR</xsl:when>
  269. </xsl:choose>
  270. </xsl:attribute>
  271. </xsl:if>
  272. <label id="#2062" isAcceleratorIgnored="true" text="{$idControl}" isVisible="false" layoutPosition="none"  />
  273. <xsl:if test="$sText != ''">
  274. <label isAcceleratorIgnored="true" text="{$sText}" textalign="MiddleLeft" id="#2051">
  275. <xsl:if test="$tRtl != ''">
  276. <xsl:attribute name="direction">
  277. <xsl:choose>
  278. <xsl:when test="$tRtl = 'true'">RTL</xsl:when>
  279. <xsl:when test="$tRtl = 'false'">LTR</xsl:when>
  280. </xsl:choose>
  281. </xsl:attribute>
  282. </xsl:if>
  283. <xsl:if test="$fDisabled = 'true'">
  284. <xsl:attribute name="isEnabled">false</xsl:attribute>
  285. </xsl:if>
  286. </label>
  287. </xsl:if>
  288. <radiogroup layoutChildren="vertical" ID="#2061" expandToFillHoriz="true" accessibleName="{$sText}" >
  289. <xsl:if test="$fDisabled = 'true'">
  290. <xsl:attribute name="isEnabled">false</xsl:attribute>
  291. </xsl:if>
  292. <xsl:for-each select="$pContext"><xsl:apply-templates select=".">
  293. <xsl:with-param name="sAction" select="$sAction" />
  294. <xsl:with-param name="sSubmitUrl" select="$sSubmitUrl" />
  295. </xsl:apply-templates>
  296. </xsl:for-each>
  297. </radiogroup>
  298. </element>
  299. </xsl:template>
  300. <xsl:template name="RadioGroupOption">
  301. <xsl:param name="pContext" /><xsl:param name="idControl" />
  302. <xsl:param name="sSubmitUrl" />
  303. <xsl:param name="sAction" />
  304. <xsl:param name="sText" />
  305. <xsl:param name="tRtl" />
  306. <xsl:param name="fDisabled" />
  307. <xsl:param name="fChecked" />
  308. <element id="#2066" layoutChildren="vertical" expandToFillHoriz="true">
  309. <radiobutton isAcceleratorIgnored="true" text="{$sText}" ID="#2061" textAlign="WrapLeft" expandToFillHoriz="true" width="0" accessibleName="{$sText}" >
  310. <xsl:if test="$sAction = 'requery'">
  311. <xsl:attribute name="eventHandler">RefRequeryEL</xsl:attribute>
  312. </xsl:if>
  313. <xsl:if test="$sAction = 'callback'">
  314. <xsl:attribute name="eventHandler">RefCallbackEL</xsl:attribute>
  315. </xsl:if>
  316. <xsl:if test="$fDisabled = 'true'">
  317. <xsl:attribute name="isEnabled">false</xsl:attribute>
  318. </xsl:if>
  319. <xsl:if test="$fChecked = 'true'">
  320. <xsl:attribute name="isSelected">true</xsl:attribute>
  321. </xsl:if>
  322. <xsl:if test="$tRtl != ''">
  323. <xsl:attribute name="direction">
  324. <xsl:choose>
  325. <xsl:when test="$tRtl = 'true'">RTL</xsl:when>
  326. <xsl:when test="$tRtl = 'false'">LTR</xsl:when>
  327. </xsl:choose>
  328. </xsl:attribute>
  329. </xsl:if>
  330. <label id="#2062" isAcceleratorIgnored="true" text="{$idControl}" isVisible="false" layoutPosition="none"  />
  331. <xsl:if test="$sSubmitUrl != ''">
  332. <label id="#2063" isAcceleratorIgnored="true" text="{$sSubmitUrl}" isVisible="false" layoutPosition="none"  />
  333. </xsl:if>
  334. </radiobutton>
  335. <xsl:if test="$pContext">
  336. <xsl:apply-templates select="$pContext"/></xsl:if>
  337. </element>
  338. </xsl:template>
  339. <xsl:template name="CheckBox">
  340. <xsl:param name="pContext" /><xsl:param name="idControl" />
  341. <xsl:param name="sSubmitUrl" />
  342. <xsl:param name="sAction" />
  343. <xsl:param name="sText" />
  344. <xsl:param name="tRtl" />
  345. <xsl:param name="fDisabled" />
  346. <xsl:param name="fChecked" />
  347. <element id="#2066" layoutChildren="vertical" expandToFillHoriz="true">
  348. <checkbox id="#2061" isAcceleratorIgnored="true" text="{$sText}" textAlign="WrapLeft" accessibleName="{$sText}" >
  349. <xsl:if test="$sAction = 'requery'">
  350. <xsl:attribute name="eventHandler">RefRequeryEL</xsl:attribute>
  351. </xsl:if>
  352. <xsl:if test="$sAction = 'callback'">
  353. <xsl:attribute name="eventHandler">RefCallbackEL</xsl:attribute>
  354. </xsl:if>
  355. <xsl:if test="$fDisabled = 'true'">
  356. <xsl:attribute name="isEnabled">false</xsl:attribute>
  357. </xsl:if>
  358. <xsl:if test="$fChecked = 'true'">
  359. <xsl:attribute name="isChecked">true</xsl:attribute>
  360. </xsl:if>
  361. <xsl:if test="$sText = ''">
  362. <xsl:attribute name="focusRect">none</xsl:attribute>
  363. </xsl:if>
  364. <xsl:if test="$tRtl != ''">
  365. <xsl:attribute name="direction">
  366. <xsl:choose>
  367. <xsl:when test="$tRtl = 'true'">RTL</xsl:when>
  368. <xsl:when test="$tRtl = 'false'">LTR</xsl:when>
  369. </xsl:choose>
  370. </xsl:attribute>
  371. </xsl:if>
  372. </checkbox>
  373. <label id="#2062" isAcceleratorIgnored="true" text="{$idControl}" isVisible="false" layoutPosition="none" />
  374. <xsl:if test="$sSubmitUrl != ''">
  375. <label id="#2063" isAcceleratorIgnored="true" text="{$sSubmitUrl}" isVisible="false" layoutPosition="none"  />
  376. </xsl:if>
  377. <xsl:if test="$pContext"><xsl:apply-templates select="$pContext"/>
  378. </xsl:if>
  379. </element>
  380. </xsl:template>
  381. <xsl:template name="ListBox">
  382. <xsl:param name="pContext" /><xsl:param name="idControl" />
  383. <xsl:param name="sSubmitUrl" />
  384. <xsl:param name="sAction" />
  385. <xsl:param name="sText" />
  386. <xsl:param name="tRtl" />
  387. <xsl:param name="tRtlControl" />
  388. <xsl:param name="fDropdown" />
  389. <xsl:param name="fVertical" />
  390. <xsl:param name="fDisabled" />
  391. <xsl:param name="iWidth" />
  392. <xsl:variable name="sLayout">
  393. <xsl:choose>
  394. <xsl:when test="$fVertical = 'true'">vertical</xsl:when>
  395. <xsl:otherwise>flow</xsl:otherwise>
  396. </xsl:choose>
  397. </xsl:variable>
  398. <element layoutChildren="{$sLayout}" id="#2065">
  399. <xsl:if test="$tRtl != ''">
  400. <xsl:attribute name="direction">
  401. <xsl:choose>
  402. <xsl:when test="$tRtl = 'true'">RTL</xsl:when>
  403. <xsl:when test="$tRtl = 'false'">LTR</xsl:when>
  404. </xsl:choose>
  405. </xsl:attribute>
  406. </xsl:if>
  407. <xsl:choose>
  408. <xsl:when test="$iWidth='' or not($iWidth)">
  409. <xsl:attribute name="expandToFillHoriz">true</xsl:attribute>
  410. </xsl:when>
  411. <xsl:otherwise>
  412. <xsl:attribute name="expandToFillHoriz">false</xsl:attribute>
  413. </xsl:otherwise>
  414. </xsl:choose>
  415. <xsl:if test="$fDropdown = 'true'">
  416. <xsl:attribute name="alignChildren">left</xsl:attribute>
  417. </xsl:if>
  418. <xsl:if test="$sText != ''">
  419. <label isAcceleratorIgnored="true" text="{$sText}" id="#2051">
  420. <xsl:if test="$tRtl != ''">
  421. <xsl:attribute name="direction">
  422. <xsl:choose>
  423. <xsl:when test="$tRtl = 'true'">RTL</xsl:when>
  424. <xsl:when test="$tRtl = 'false'">LTR</xsl:when>
  425. </xsl:choose>
  426. </xsl:attribute>
  427. </xsl:if>
  428. </label>
  429. </xsl:if>
  430. <xsl:choose>
  431. <xsl:when test="$fDropdown = 'true'">
  432. <dropDown id="#2061" listHeight="20" accessibleName="{$sText}" applyIntermediateSelections="false">
  433. <xsl:if test="$tRtlControl != ''">
  434. <xsl:attribute name="direction">
  435. <xsl:choose>
  436. <xsl:when test="$tRtlControl = 'true'">RTL</xsl:when>
  437. <xsl:when test="$tRtlControl = 'false'">LTR</xsl:when>
  438. </xsl:choose>
  439. </xsl:attribute>
  440. </xsl:if>
  441. <xsl:choose>
  442. <xsl:when test="$iWidth='' or not($iWidth)">
  443. <xsl:attribute name="expandToFillHoriz">true</xsl:attribute>
  444. </xsl:when>
  445. <xsl:otherwise>
  446. <xsl:attribute name="expandToFillHoriz">false</xsl:attribute>
  447. <xsl:attribute name="width">
  448. <xsl:value-of select="$iWidth * 5" />
  449. </xsl:attribute>
  450. </xsl:otherwise>
  451. </xsl:choose>
  452. <xsl:if test="$sAction = 'requery'">
  453. <xsl:attribute name="eventHandler">RefRequeryEL</xsl:attribute>
  454. </xsl:if>
  455. <xsl:if test="$sAction = 'callback'">
  456. <xsl:attribute name="eventHandler">RefCallbackEL</xsl:attribute>
  457. </xsl:if>
  458. <xsl:if test="$fDisabled = 'true'">
  459. <xsl:attribute name="isEnabled">false</xsl:attribute>
  460. </xsl:if>
  461. <xsl:if test="$pContext">
  462. <xsl:apply-templates select="$pContext"/></xsl:if>
  463. </dropDown>
  464. </xsl:when>
  465. <xsl:otherwise>
  466. <listBox id="#2061" listHeight="5" accessibleName="{$sText}" >
  467. <xsl:if test="$tRtlControl != ''">
  468. <xsl:attribute name="direction">
  469. <xsl:choose>
  470. <xsl:when test="$tRtlControl = 'true'">RTL</xsl:when>
  471. <xsl:when test="$tRtlControl = 'false'">LTR</xsl:when>
  472. </xsl:choose>
  473. </xsl:attribute>
  474. </xsl:if>
  475. <xsl:choose>
  476. <xsl:when test="$iWidth='' or not($iWidth)">
  477. <xsl:attribute name="expandToFillHoriz">true</xsl:attribute>
  478. </xsl:when>
  479. <xsl:otherwise>
  480. <xsl:attribute name="expandToFillHoriz">false</xsl:attribute>
  481. <xsl:attribute name="width">
  482. <xsl:value-of select="$iWidth * 5" />
  483. </xsl:attribute>
  484. </xsl:otherwise>
  485. </xsl:choose>
  486. <xsl:if test="$fDisabled = 'true'">
  487. <xsl:attribute name="isEnabled">false</xsl:attribute>
  488. </xsl:if>
  489. <xsl:if test="$sAction = 'requery'">
  490. <xsl:attribute name="eventHandler">RefRequeryEL</xsl:attribute>
  491. </xsl:if>
  492. <xsl:if test="$sAction = 'callback'">
  493. <xsl:attribute name="eventHandler">RefCallbackEL</xsl:attribute>
  494. </xsl:if>
  495. <xsl:if test="$pContext">
  496. <xsl:apply-templates select="$pContext"/></xsl:if>
  497. </listBox>
  498. </xsl:otherwise>
  499. </xsl:choose>
  500. <label id="#2062" isAcceleratorIgnored="true" text="{$idControl}" isVisible="false" layoutPosition="none"  />
  501. <xsl:if test="$sSubmitUrl != ''">
  502. <label id="#2063" isAcceleratorIgnored="true" text="{$sSubmitUrl}" isVisible="false" layoutPosition="none"  />
  503. </xsl:if>
  504. </element>
  505. </xsl:template>
  506. <xsl:template name="ListBoxOption">
  507. <xsl:param name="idControl" />
  508. <xsl:param name="sText" />
  509. <xsl:param name="fSelected" />
  510. <xsl:param name="iLevel" />
  511. <listItem isAcceleratorIgnored="true" text="{$sText}" value="{$idControl}">
  512. <xsl:if test="$fSelected = 'true'">
  513. <xsl:attribute name="isSelected">true</xsl:attribute>
  514. </xsl:if>
  515. <xsl:attribute name="text">
  516. <xsl:choose>
  517. <xsl:when test="$iLevel= 2">
  518. <xsl:text> </xsl:text>
  519. </xsl:when>
  520. <xsl:when test="$iLevel = 3">
  521. <xsl:text> </xsl:text>
  522. </xsl:when>
  523. </xsl:choose>
  524. <xsl:value-of select="$sText" />
  525. </xsl:attribute>
  526. </listItem>
  527. </xsl:template>
  528. <xsl:template name="Button">
  529. <xsl:param name="idControl" />
  530. <xsl:param name="sSubmitUrl" />
  531. <xsl:param name="sAction" />
  532. <xsl:param name="sText" />
  533. <xsl:param name="tRtl" />
  534. <xsl:param name="sIcon" />
  535. <xsl:param name="fDisabled" />
  536. <xsl:param name="sTooltip" />
  537. <element id="#2066">
  538. <xsl:choose>
  539. <xsl:when test="$sIcon = 'go'">
  540. <SearchButton id="#2061" screenTip="{$sTooltip}" screentipFormat="best"  >
  541. <xsl:if test="$sAction = 'requery'">
  542. <xsl:attribute name="eventHandler">RefRequeryEL</xsl:attribute>
  543. </xsl:if>
  544. <xsl:if test="$sAction = 'callback'">
  545. <xsl:attribute name="eventHandler">RefCallbackEL</xsl:attribute>
  546. </xsl:if>
  547. <xsl:if test="$fDisabled = 'true'">
  548. <xsl:attribute name="isEnabled">false</xsl:attribute>
  549. </xsl:if>
  550. <xsl:choose>
  551. <xsl:when test="$sText != ''">
  552. <xsl:attribute name="accessibleName">
  553. <xsl:value-of select="$sText" />
  554. </xsl:attribute>
  555. </xsl:when>
  556. <xsl:otherwise>
  557. <xsl:attribute name="accessibleName">:rcstring(0x01800033L)</xsl:attribute>
  558. </xsl:otherwise>
  559. </xsl:choose>
  560. </SearchButton>
  561. </xsl:when>
  562. <xsl:otherwise>
  563. <button textAlign="EndEllipsis" isAcceleratorIgnored="true" text="{$sText}" expandToFillHoriz="false" id="#2061" screenTip="{$sTooltip}" screentipFormat="best" accessibleName="{$sTooltip}" >
  564. <xsl:if test="$tRtl != ''">
  565. <xsl:attribute name="direction">
  566. <xsl:choose>
  567. <xsl:when test="$tRtl = 'true'">RTL</xsl:when>
  568. <xsl:when test="$tRtl = 'false'">LTR</xsl:when>
  569. </xsl:choose>
  570. </xsl:attribute>
  571. </xsl:if>
  572. <xsl:if test="$sAction = 'requery'">
  573. <xsl:attribute name="eventHandler">RefRequeryEL</xsl:attribute>
  574. </xsl:if>
  575. <xsl:if test="$sAction = 'callback'">
  576. <xsl:attribute name="eventHandler">RefCallbackEL</xsl:attribute>
  577. </xsl:if>
  578. <xsl:if test="$fDisabled = 'true'">
  579. <xsl:attribute name="isEnabled">false</xsl:attribute>
  580. </xsl:if>
  581. </button>
  582. </xsl:otherwise>
  583. </xsl:choose>
  584. <label id="#2062" isAcceleratorIgnored="true" text="{$idControl}" isVisible="false" layoutPosition="none" />
  585. <xsl:if test="$sSubmitUrl != ''">
  586. <label id="#2063" isAcceleratorIgnored="true" text="{$sSubmitUrl}" isVisible="false" layoutPosition="none"  />
  587. </xsl:if>
  588. </element>
  589. </xsl:template>
  590. <xsl:template name="Form">
  591. <xsl:param name="pContext" /><xsl:param name="sRevision" /><xsl:param name="sBuild" /><xsl:param name="tRtl" />
  592. <xsl:param name="fPropagate" />
  593. <xsl:param name="fSeparator" />
  594. <element layoutChildren="vertical" padding="0,2,0,0" sheet="#Orientation" class="#2049">
  595. <xsl:choose>
  596. <xsl:when test="$fPropagate = 'true'">
  597. <xsl:attribute name="id">#2095</xsl:attribute>
  598. </xsl:when>
  599. <xsl:otherwise>
  600. <xsl:attribute name="id">#2094</xsl:attribute>
  601. </xsl:otherwise>
  602. </xsl:choose>
  603. <xsl:if test="$tRtl != ''">
  604. <xsl:attribute name="direction">
  605. <xsl:choose>
  606. <xsl:when test="$tRtl = 'true'">RTL</xsl:when>
  607. <xsl:when test="$tRtl = 'false'">LTR</xsl:when>
  608. </xsl:choose>
  609. </xsl:attribute>
  610. </xsl:if>
  611. <xsl:if test="$pContext" >
  612. <xsl:apply-templates select="$pContext" /></xsl:if>
  613. <xsl:if test="$fSeparator = 'true'">
  614. <xsl:call-template name="HR" >
  615. <xsl:with-param name="fConditional" select="'true'" />
  616. </xsl:call-template>
  617. </xsl:if>
  618. </element>
  619. </xsl:template>
  620. <xsl:template name="ContentCallback">
  621. <xsl:param name="idService" />
  622. <xsl:param name="spCallback" />
  623. <xsl:param name="spContext" />
  624. <xsl:param name="iStart"  />
  625. <xsl:param name="cSize"  />
  626. <xsl:param name="cMax"  />
  627. <xsl:choose>
  628. <xsl:when test="$spCallback='ResponseResults'">
  629. <element id="#2000" sheet="#Orientation" class="#2000" expandToFillHoriz="true">
  630. <element layoutChildren="vertical" id="#2049" sheet="#Orientation" class="#2094" >
  631. <xsl:call-template name="ResponseResults" >
  632. <xsl:with-param name="idService" select="$idService" />
  633. <xsl:with-param name="iCaller"   select="'1'" />
  634. <xsl:with-param name="iStart" select="$iStart" />
  635. <xsl:with-param name="cSize" select="$cSize" />
  636. <xsl:with-param name="cMax" select="$cMax" />
  637. </xsl:call-template>
  638. </element>
  639. <element layoutChildren="vertical" expandToFillHoriz="true" id="#2048" >
  640. <xsl:call-template name="ResponseResults" >
  641. <xsl:with-param name="idService" select="$idService" />
  642. <xsl:with-param name="iCaller"   select="'2'" />
  643. <xsl:with-param name="iStart" select="$iStart" />
  644. <xsl:with-param name="cSize" select="$cSize" />
  645. <xsl:with-param name="cMax" select="$cMax" />
  646. </xsl:call-template>
  647. </element>
  648. </element>
  649. </xsl:when>
  650. </xsl:choose>
  651. </xsl:template>
  652. <xsl:template name="HR">
  653. <xsl:param name="fConditional" />
  654. <xsl:variable name="idCondition">
  655. <xsl:if test="$fConditional = 'true'">#2049</xsl:if>
  656. </xsl:variable>
  657. <line id="#2086" sheet="#Orientation" class="{$idCondition}" expandToFillHoriz="true" padding="0,6,0,2" />
  658. </xsl:template>
  659. <xsl:template name="ContentHyperLink">
  660. <xsl:param name="sText" />
  661. <xsl:param name="sTooltip" />
  662. <xsl:param name="sUrl" />
  663. <xsl:param name="sFont" />
  664. <xsl:param name="fPay" />
  665. <xsl:param name="tRtl" />
  666. <xsl:param name="fWrapping" />
  667. <xsl:call-template name="HyperLink" >
  668. <xsl:with-param name="sTooltip" select="$sTooltip" />
  669. <xsl:with-param name="sText" select="$sText" />
  670. <xsl:with-param name="sQuery" select="$sUrl" />
  671. <xsl:with-param name="sAction" select="'fetch'" />
  672. <xsl:with-param name="sFont" select="$sFont" />
  673. <xsl:with-param name="fPay" select="$fPay" />
  674. <xsl:with-param name="tRtl" select="$tRtl" />
  675. <xsl:with-param name="fWrapping" select="$fWrapping" />
  676. </xsl:call-template>
  677. </xsl:template>
  678. <xsl:template name="ContentNewQuery">
  679. <xsl:param name="sText" />
  680. <xsl:param name="sTooltip" />
  681. <xsl:param name="sFont" />
  682. <xsl:param name="sQuery" />
  683. <xsl:param name="sCategory" />
  684. <xsl:param name="tRtl" />
  685. <xsl:param name="fWrapping" />
  686. <xsl:param name="sAction" />
  687. <xsl:call-template name="HyperLink">
  688. <xsl:with-param name="sTooltip" select="$sTooltip" />
  689. <xsl:with-param name="sQuery" select="$sQuery" />
  690. <xsl:with-param name="sSubQuery" select="$sCategory" />
  691. <xsl:with-param name="sFont" select="$sFont" />
  692. <xsl:with-param name="fWrapping" select="$fWrapping" />
  693. <xsl:with-param name="sAction" select="$sAction" />
  694. <xsl:with-param name="tRtl" select="$tRtl" />
  695. <xsl:with-param name="sText" select="$sText" />
  696. </xsl:call-template>
  697. </xsl:template>
  698. <xsl:template name="Insert">
  699. <xsl:param name="sText" />
  700. <xsl:param name="psData1" />
  701. <xsl:param name="psData2" />
  702. <button id="#2105"  isAcceleratorIgnored="true" text="{$sText}" eventHandler="RefActionEL" >
  703. <xsl:choose>
  704. <xsl:when test="$psData1">
  705. <xsl:for-each select="$psData1">
  706. <label isAcceleratorIgnored="true" isVisible="false"  id="#2085" layoutPosition="none" >
  707. <xsl:attribute name="text">
  708. <xsl:value-of select="."/>
  709. </xsl:attribute>
  710. </label>
  711. </xsl:for-each>
  712. </xsl:when>
  713. <xsl:when test="$psData2">
  714. <xsl:for-each select="$psData2">
  715. <label isAcceleratorIgnored="true" isVisible="false"  id="#2085" layoutPosition="none" >
  716. <xsl:attribute name="text">
  717. <xsl:value-of select="."/>
  718. </xsl:attribute>
  719. </label>
  720. </xsl:for-each>
  721. </xsl:when>
  722. </xsl:choose>
  723. </button>
  724. </xsl:template>
  725. <xsl:template name="Copy">
  726. <xsl:param name="sText" />
  727. <xsl:param name="psData1" />
  728. <xsl:param name="psData2" />
  729. <button id="#2104" isAcceleratorIgnored="true" text="{$sText}" eventHandler="RefActionEL"  >
  730. <xsl:choose>
  731. <xsl:when test="$psData1">
  732. <xsl:for-each select="$psData1">
  733. <label isAcceleratorIgnored="true" isVisible="false"  id="#2085" layoutPosition="none" >
  734. <xsl:attribute name="text">
  735. <xsl:value-of select="."/>
  736. </xsl:attribute>
  737. </label>
  738. </xsl:for-each>
  739. </xsl:when>
  740. <xsl:when test="$psData2">
  741. <xsl:for-each select="$psData2">
  742. <label isAcceleratorIgnored="true" isVisible="false"  id="#2085" layoutPosition="none" >
  743. <xsl:attribute name="text">
  744. <xsl:value-of select="."/>
  745. </xsl:attribute>
  746. </label>
  747. </xsl:for-each>
  748. </xsl:when>
  749. </xsl:choose>
  750. </button>
  751. </xsl:template>
  752. <xsl:template name="Tabular">
  753. <xsl:param name="pContext" />
  754. <xsl:param name="sTitle" />
  755. <xsl:choose>
  756. <xsl:when test="$sTitle = ''">
  757. <xsl:apply-templates select="$pContext" />
  758. </xsl:when>
  759. <xsl:otherwise>
  760. <groupBox sheet="#H2" id="#2100" expandToFillHoriz="true" indentBy="0">
  761. <groupHeader isAcceleratorIgnored="true" text="{$sTitle}" id="#2091" textAlign="WrapLeft" expandToFillVert="false" expandToFillHoriz="true"/>
  762. <groupContent layoutChildren="vertical" id="#2052" expandToFillHoriz="true" padding="0,0,0,0" indentBy="0">
  763. <xsl:apply-templates select="$pContext" />
  764. </groupContent>
  765. </groupBox>
  766. </xsl:otherwise>
  767. </xsl:choose>
  768. </xsl:template>
  769. <xsl:template name="Record">
  770. <xsl:param name="tRtl" />
  771. <xsl:param name="sName" />
  772. <xsl:param name="fNameBold" />
  773. <xsl:param name="tNameRtl" />
  774. <xsl:param name="sValue" />
  775. <xsl:param name="fValueBold" />
  776. <xsl:param name="tValueRtl" />
  777. <xsl:param name="fBorders" />
  778. <xsl:param name="pAction" /><xsl:param name="fAction" />
  779. <xsl:param name="fDefaultAllowed" />
  780. <xsl:variable name="rcBorderThickness" >
  781. <xsl:choose>
  782. <xsl:when test="$fBorders = 'false'">0,0,0,0</xsl:when>
  783. <xsl:otherwise>0,0,0,1</xsl:otherwise>
  784. </xsl:choose>
  785. </xsl:variable>
  786. <xsl:choose>
  787. <xsl:when test="$fAction = 'true'">
  788. <xsl:variable name="sAccessibleName">
  789. <xsl:value-of select="$sName" />
  790. <xsl:text> </xsl:text>
  791. <xsl:value-of select="$sValue" />
  792. </xsl:variable>
  793. <pcc id="#2077" accessibleName="{$sAccessibleName}" >
  794. <xsl:if test="$fDefaultAllowed = 'true'">
  795. <xsl:attribute name="eventHandler">MsoPccContentContextHandler;RefActionEL</xsl:attribute>
  796. </xsl:if>
  797. <pccContent>
  798. <element layoutChildren="horizontal" expandtofillhoriz="true" id="#2057" distributeChildren="true" borderThickness="{$rcBorderThickness}">
  799. <xsl:if test="$tRtl != ''">
  800. <xsl:attribute name="direction">
  801. <xsl:choose>
  802. <xsl:when test="$tRtl = 'true'">RTL</xsl:when>
  803. <xsl:when test="$tRtl = 'false'">LTR</xsl:when>
  804. </xsl:choose>
  805. </xsl:attribute>
  806. </xsl:if>
  807. <xsl:if test="$sName != ''">
  808. <label text="{$sName}">
  809. <xsl:attribute name="fontWeight">
  810. <xsl:choose>
  811. <xsl:when test="$fNameBold = 'true'">bold</xsl:when>
  812. <xsl:otherwise>normal</xsl:otherwise>
  813. </xsl:choose>
  814. </xsl:attribute>
  815. <xsl:if test="$tNameRtl != ''">
  816. <xsl:attribute name="direction">
  817. <xsl:choose>
  818. <xsl:when test="$tNameRtl = 'true'">RTL</xsl:when>
  819. <xsl:when test="$tNameRtl = 'false'">LTR</xsl:when>
  820. </xsl:choose>
  821. </xsl:attribute>
  822. </xsl:if>
  823. <xsl:if test="not($sValue)">
  824. <xsl:attribute name="textAlign">EndEllipsis</xsl:attribute>
  825. </xsl:if>
  826. </label>
  827. </xsl:if>
  828. <xsl:if test="$sValue != ''">
  829. <label text="{$sValue}">
  830. <xsl:attribute name="fontWeight">
  831. <xsl:choose>
  832. <xsl:when test="$fValueBold = 'true'">bold</xsl:when>
  833. <xsl:otherwise>normal</xsl:otherwise>
  834. </xsl:choose>
  835. </xsl:attribute>
  836. <xsl:if test="$tValueRtl != ''">
  837. <xsl:attribute name="direction">
  838. <xsl:choose>
  839. <xsl:when test="$tValueRtl = 'true'">RTL</xsl:when>
  840. <xsl:when test="$tValueRtl = 'false'">LTR</xsl:when>
  841. </xsl:choose>
  842. </xsl:attribute>
  843. </xsl:if>
  844. <xsl:if test="not($sName)">
  845. <xsl:attribute name="textAlign">EndEllipsis</xsl:attribute>
  846. </xsl:if>
  847. </label>
  848. </xsl:if>
  849. </element>
  850. </pccContent>
  851. <xsl:apply-templates select="$pAction" /></pcc>
  852. </xsl:when>
  853. <xsl:otherwise>
  854. <element layoutChildren="horizontal" padding="2,0,2,0" expandtofillhoriz="true" id="#2057" distributeChildren="true" borderThickness="{$rcBorderThickness}">
  855. <xsl:if test="$tRtl != ''">
  856. <xsl:attribute name="direction">
  857. <xsl:choose>
  858. <xsl:when test="$tRtl = 'true'">RTL</xsl:when>
  859. <xsl:when test="$tRtl = 'false'">LTR</xsl:when>
  860. </xsl:choose>
  861. </xsl:attribute>
  862. </xsl:if>
  863. <xsl:call-template name="Text">
  864. <xsl:with-param name="tStrong" select="$fNameBold" />
  865. <xsl:with-param name="sText" select="$sName" />
  866. <xsl:with-param name="fWrapping" select="'false'" />
  867. <xsl:with-param name="fPadding" select="'false'" />
  868. <xsl:with-param name="sType" select="'record'" />
  869. <xsl:with-param name="tRtl" select="$tNameRtl" />
  870. </xsl:call-template>
  871. <xsl:call-template name="Text">
  872. <xsl:with-param name="tStrong" select="$fValueBold" />
  873. <xsl:with-param name="sText" select="$sValue" />
  874. <xsl:with-param name="fWrapping" select="'false'" />
  875. <xsl:with-param name="fPadding" select="'false'" />
  876. <xsl:with-param name="sType" select="'record'" />
  877. <xsl:with-param name="tRtl" select="$tValueRtl" />
  878. </xsl:call-template>
  879. </element>
  880. </xsl:otherwise>
  881. </xsl:choose>
  882. </xsl:template>
  883. <xsl:template name="Image">
  884. <xsl:param name="sTooltip" />
  885. <xsl:param name="sAltText" />
  886. <xsl:param name="sSource" />
  887. <xsl:param name="fIcon" />
  888. <xsl:choose>
  889. <xsl:when test="$sSource='Spelling' and $fIcon = 'true'">
  890. <image screenTip="{$sTooltip}" screentipFormat="best" src=":msotcid(2)" accessibleName="{$sAltText}"  />
  891. </xsl:when>
  892. <xsl:when test="$sSource='FileSearch' and $fIcon = 'true'">
  893. <image screenTip="{$sTooltip}" screentipFormat="best" src=":msotcid(5905)" accessibleName="{$sAltText}"  />
  894. </xsl:when>
  895. <xsl:when test="$sSource='Research' and $fIcon = 'true'">
  896. <image screenTip="{$sTooltip}" screentipFormat="best" src=":msotcid(7343)" accessibleName="{$sAltText}"  />
  897. </xsl:when>
  898. <xsl:when test="$sSource='ClipArt' and $fIcon = 'true'">
  899. <image screenTip="{$sTooltip}" screentipFormat="best" src=":msotcid(6579)" accessibleName="{$sAltText}"  />
  900. </xsl:when>
  901. <xsl:when test="$sSource='Help' and $fIcon = 'true'">
  902. <image screenTip="{$sTooltip}" screentipFormat="best" src=":msotcid(983)" accessibleName="{$sAltText}"  />
  903. </xsl:when>
  904. <xsl:when test="$sSource='MSN' and $fIcon = 'true'">
  905. <image screenTip="{$sTooltip}" screentipFormat="best" src=":msotcid(9678)" accessibleName="{$sAltText}"  />
  906. </xsl:when>
  907. <xsl:when test="$fIcon = 'true'">
  908. <imageExt screenTip="{$sTooltip}" screentipFormat="best" fileName="{$sSource}" accessibleName="{$sAltText}"  />
  909. </xsl:when>
  910. <xsl:otherwise>
  911. <imageURL screenTip="{$sTooltip}" screentipFormat="best" URL="{$sSource}" accessibleName="{$sAltText}"  />
  912. </xsl:otherwise>
  913. </xsl:choose>
  914. </xsl:template>
  915. <xsl:template name="Text">
  916. <xsl:param name="pContext" /><xsl:param name="sText" />
  917. <xsl:param name="tStrong" />
  918. <xsl:param name="tEmphasis" />
  919. <xsl:param name="tUnderline" />
  920. <xsl:param name="tSmallcaps" />
  921. <xsl:param name="tSuperscript" />
  922. <xsl:param name="tSubscript" />
  923. <xsl:param name="tLight" />
  924. <xsl:param name="fWrapping" />
  925. <xsl:param name="sFont" />
  926. <xsl:param name="fPadding" />
  927. <xsl:param name="sAlignment" />
  928. <xsl:param name="tRtl" />
  929. <xsl:param name="pAction" /><xsl:param name="sType" />
  930. <xsl:variable name="rgchProps">
  931. <xsl:if test="$sFont='normal'">0</xsl:if>
  932. <xsl:if test="$sFont='unicode'">0</xsl:if>
  933. <xsl:if test="$sFont='arial'">1</xsl:if>
  934. <xsl:if test="$sFont='courier'">2</xsl:if>
  935. <xsl:if test="$sFont='lucida console'">3</xsl:if>
  936. <xsl:if test="$sFont='marlett'">4</xsl:if>
  937. <xsl:if test="$sFont='reference'">5</xsl:if>
  938. <xsl:if test="$sFont='reference serif'">6</xsl:if>
  939. <xsl:if test="$sFont='serif'">7</xsl:if>
  940. <xsl:if test="$sFont='symbol'">8</xsl:if>
  941. <xsl:if test="$sFont='times'">9</xsl:if>
  942. <xsl:if test="$sFont='wingdings'">w</xsl:if>
  943. <xsl:if test="$sFont='bookshelf symbol'">k</xsl:if>
  944. <xsl:if test="$sFont='gothic'">W</xsl:if>
  945. <xsl:if test="$sFont='unicode'">z</xsl:if>
  946. <xsl:if test="$tSmallcaps='true'">m</xsl:if>
  947. <xsl:if test="$tSmallcaps='false'">M</xsl:if>
  948. <xsl:if test="$tSuperscript='true'">s</xsl:if>
  949. <xsl:if test="$tSuperscript='false'">S</xsl:if>
  950. <xsl:if test="$tSubscript='true'">c</xsl:if>
  951. <xsl:if test="$tSubscript='false'">C</xsl:if>
  952. <xsl:if test="$tUnderline='true'">u</xsl:if>
  953. <xsl:if test="$tUnderline='false'">U</xsl:if>
  954. <xsl:if test="$tStrong='true'">b</xsl:if>
  955. <xsl:if test="$tStrong='false'">B</xsl:if>
  956. <xsl:if test="$tEmphasis='true'">i</xsl:if>
  957. <xsl:if test="$tEmphasis='false'">I</xsl:if>
  958. <xsl:if test="$tLight='true'">g</xsl:if>
  959. <xsl:if test="$tLight='false'">G</xsl:if>
  960. <xsl:if test="$tRtl='true'">
  961. <xsl:choose>
  962. <xsl:when test="$sType='nested'">r</xsl:when>
  963. <xsl:otherwise>l</xsl:otherwise>
  964. </xsl:choose>
  965. </xsl:if>
  966. <xsl:if test="$tRtl='false'">
  967. <xsl:choose>
  968. <xsl:when test="$sType='nested'">R</xsl:when>
  969. <xsl:otherwise>L</xsl:otherwise>
  970. </xsl:choose>
  971. </xsl:if>
  972. </xsl:variable>
  973. <xsl:variable name="sTextAlign">
  974. <xsl:choose>
  975. <xsl:when test="$fWrapping='ellipsis'">EngEllipsis</xsl:when>
  976. <xsl:when test="$fWrapping='true' and $sAlignment='right'">WrapRight</xsl:when>
  977. <xsl:when test="$fWrapping='true' ">WrapLeft</xsl:when>
  978. <xsl:when test="$sAlignment='right'">MiddleRight</xsl:when>
  979. <xsl:otherwise>MiddleLeft</xsl:otherwise>
  980. </xsl:choose>
  981. </xsl:variable>
  982. <xsl:choose>
  983. <xsl:when test="$sType='paragraph'">
  984. <Content textAlign="{$sTextAlign}" indentBy="2" lowerBy="4">
  985. <xsl:if test="$tRtl != ''">
  986. <xsl:attribute name="readingOrder">useDirection</xsl:attribute>
  987. <xsl:attribute name="direction">
  988. <xsl:choose>
  989. <xsl:when test="$tRtl = 'true'">RTL</xsl:when>
  990. <xsl:when test="$tRtl = 'false'">LTR</xsl:when>
  991. </xsl:choose>
  992. </xsl:attribute>
  993. </xsl:if>
  994. <xsl:attribute name="ContentText">
  995. <xsl:if test="$rgchProps!=''">
  996. <xsl:text><P a="</xsl:text>
  997. <xsl:value-of select="$rgchProps" />
  998. <xsl:text>"></xsl:text>
  999. </xsl:if>
  1000. <xsl:apply-templates select="$pContext" /><xsl:if test="$rgchProps!=''">
  1001. <xsl:text></P></xsl:text>
  1002. </xsl:if>
  1003. </xsl:attribute>
  1004. </Content>
  1005. <xsl:if test="$pAction">
  1006. <element layoutChildren="flow" id="#2058" >
  1007. <xsl:apply-templates select="$pAction" /></element>
  1008. </xsl:if>
  1009. </xsl:when>
  1010. <xsl:when test="$sType='nested'">
  1011. <xsl:if test="$fPadding!='false' and $fPadding!='none' and $fPadding!='first'">
  1012. <xsl:text> </xsl:text>
  1013. </xsl:if>
  1014. <xsl:if test="$rgchProps!=''">
  1015. <xsl:text><C a="</xsl:text>
  1016. <xsl:value-of select="$rgchProps" />
  1017. <xsl:text>"></xsl:text>
  1018. </xsl:if>
  1019. <xsl:value-of select="$sText" />
  1020. <xsl:if test="$pContext">
  1021. <xsl:apply-templates select="$pContext" /></xsl:if>
  1022. <xsl:if test="$rgchProps!=''">
  1023. <xsl:text></C></xsl:text>
  1024. </xsl:if>
  1025. </xsl:when>
  1026. <xsl:otherwise>
  1027. <xsl:variable name="iIndent">
  1028. <xsl:choose>
  1029. <xsl:when test="$fPadding!='false' and $fPadding!='none' and $fPadding!='first'">2</xsl:when>
  1030. <xsl:when test="$fPadding='first'">2</xsl:when>
  1031. <xsl:otherwise>0</xsl:otherwise>
  1032. </xsl:choose>
  1033. </xsl:variable>
  1034. <xsl:element name="Content">
  1035. <xsl:attribute name="textAlign">
  1036. <xsl:value-of select="$sTextAlign" />
  1037. </xsl:attribute>
  1038. <xsl:attribute name="lowerBy">1</xsl:attribute>
  1039. <xsl:attribute name="indentBy">
  1040. <xsl:value-of select="$iIndent"/>
  1041. </xsl:attribute>
  1042. <xsl:if test="$tRtl != ''">
  1043. <xsl:attribute name="readingOrder">useDirection</xsl:attribute>
  1044. <xsl:attribute name="direction">
  1045. <xsl:choose>
  1046. <xsl:when test="$tRtl = 'true'">RTL</xsl:when>
  1047. <xsl:when test="$tRtl = 'false'">LTR</xsl:when>
  1048. </xsl:choose>
  1049. </xsl:attribute>
  1050. </xsl:if>
  1051. <xsl:attribute name="contentText">
  1052. <xsl:if test="$rgchProps!=''">
  1053. <xsl:text><C a="</xsl:text>
  1054. <xsl:value-of select="$rgchProps" />
  1055. <xsl:text>"></xsl:text>
  1056. </xsl:if>
  1057. <xsl:value-of select="$sText" />
  1058. <xsl:if test="$rgchProps!=''">
  1059. <xsl:text></C></xsl:text>
  1060. </xsl:if>
  1061. </xsl:attribute>
  1062. </xsl:element>
  1063. </xsl:otherwise>
  1064. </xsl:choose>
  1065. </xsl:template>
  1066. <xsl:template name="Line">
  1067. <xsl:param name="pContext" /><xsl:param name="tRtl" />
  1068. <element layoutChildren="flow" id="#2058" childrenMargin="0" distributeChildren="false" expandToFillVert="false"  sameHeightChildren="false" indentBy="2" padding="0,4,0,0">
  1069. <xsl:if test="$tRtl != ''">
  1070. <xsl:attribute name="direction">
  1071. <xsl:choose>
  1072. <xsl:when test="$tRtl = 'true'">RTL</xsl:when>
  1073. <xsl:when test="$tRtl = 'false'">LTR</xsl:when>
  1074. </xsl:choose>
  1075. </xsl:attribute>
  1076. </xsl:if>
  1077. <xsl:apply-templates select="$pContext" />
  1078. </element>
  1079. </xsl:template>
  1080. <xsl:template name="ActionsData">
  1081. <xsl:param name="data" />
  1082. <xsl:if test="$data != ''">
  1083. <label isAcceleratorIgnored="true" isVisible="false" text="{$data}" id="#2085" layoutPosition="none"  />
  1084. </xsl:if>
  1085. </xsl:template>
  1086. <xsl:template name="Actions">
  1087. <xsl:param name="sName" />
  1088. <xsl:param name="sText" />
  1089. <xsl:param name="sCopy" />
  1090. <xsl:param name="sInsert" />
  1091. <xsl:param name="pCustom" /><xsl:param name="fFlat" />
  1092. <xsl:param name="pLinks" /><xsl:param name="pData1" /><xsl:param name="pData2" /><xsl:param name="sData3" />
  1093. <xsl:param name="sMode" />
  1094. <xsl:param name="sDefault" />
  1095. <xsl:choose>
  1096. <xsl:when test="$sMode='splitdd'">
  1097. <SplitDropdown id="#2038" isPromoting="false" sheet="#SDD" accessibleName="{$sName}" height="23" >
  1098. <xsl:if test="$sDefault = 'none'">
  1099. <SplitDropdownButton id="#4000" >
  1100. <xsl:attribute name="text">
  1101. <xsl:choose>
  1102. <xsl:when test="$sText != ''">
  1103. <xsl:value-of select="$sText" />
  1104. </xsl:when>
  1105. <xsl:otherwise>:rcstring(0x01800018L)</xsl:otherwise>
  1106. </xsl:choose>
  1107. </xsl:attribute>
  1108. </SplitDropdownButton>
  1109. </xsl:if>
  1110. <xsl:choose>
  1111. <xsl:when test="$pData1">
  1112. <xsl:for-each select="$pData1">
  1113. <label isAcceleratorIgnored="true" isVisible="false"  id="#2085" layoutPosition="none" >
  1114. <xsl:attribute name="text">
  1115. <xsl:value-of select="."/>
  1116. </xsl:attribute>
  1117. </label>
  1118. </xsl:for-each>
  1119. </xsl:when>
  1120. <xsl:when test="$sData3 != ''">
  1121. <label isAcceleratorIgnored="true" text="{$sData3}" isVisible="false"  id="#2085" layoutPosition="none" />
  1122. </xsl:when>
  1123. <xsl:otherwise>
  1124. <xsl:for-each select="$pData2">
  1125. <label isAcceleratorIgnored="true" isVisible="false"  id="#2085" layoutPosition="none" >
  1126. <xsl:attribute name="text">
  1127. <xsl:value-of select="."/>
  1128. </xsl:attribute>
  1129. </label>
  1130. </xsl:for-each>
  1131. </xsl:otherwise>
  1132. </xsl:choose>
  1133. <Menu id="#2046" >
  1134. <xsl:if test="$fFlat = 'true'" >
  1135. <xsl:attribute name="eventHandler">RefFactoidEL</xsl:attribute>
  1136. </xsl:if>
  1137. <xsl:if test="$sInsert != ''">
  1138. <xsl:variable name="sInsertState">
  1139. <xsl:if test="$sDefault='insert'">down</xsl:if>
  1140. </xsl:variable>
  1141. <menuItem id="#2041" text="{$sInsert}" tcid="9437" itemState="{$sInsertState}" eventHandler="RefActionEL" />
  1142. </xsl:if>
  1143. <xsl:if test="$sCopy!=''">
  1144. <xsl:variable name="sCopyState">
  1145. <xsl:if test="$sDefault='copy'">down</xsl:if>
  1146. </xsl:variable>
  1147. <menuItem id="#2040" text="{$sCopy}" tcid="19" itemState="{$sCopyState}" eventHandler="RefActionEL" />
  1148. </xsl:if>
  1149. <xsl:if test="$pLinks">
  1150. <xsl:apply-templates select="$pLinks" >
  1151. <xsl:with-param name="fAllowed" >
  1152. <xsl:if test="$sDefault = 'unknown'">true</xsl:if>
  1153. </xsl:with-param>
  1154. <xsl:with-param name="mode" >splitdd</xsl:with-param>
  1155. </xsl:apply-templates>
  1156. </xsl:if>
  1157. <xsl:if test="$pCustom">
  1158. <xsl:apply-templates select="$pCustom" >
  1159. <xsl:with-param name="fFlat" >
  1160. <xsl:value-of select="$fFlat" />
  1161. </xsl:with-param>
  1162. </xsl:apply-templates>
  1163. </xsl:if>
  1164. </Menu>
  1165. </SplitDropdown>
  1166. </xsl:when>
  1167. <xsl:when test="$sMode='menubutton'">
  1168. <xsl:choose>
  1169. <xsl:when test="$pData1">
  1170. <xsl:for-each select="$pData1">
  1171. <label isAcceleratorIgnored="true" isVisible="false"  id="#2085" layoutPosition="none" >
  1172. <xsl:attribute name="text">
  1173. <xsl:value-of select="."/>
  1174. </xsl:attribute>
  1175. </label>
  1176. </xsl:for-each>
  1177. </xsl:when>
  1178. <xsl:when test="$sData3 != ''">
  1179. <label isAcceleratorIgnored="true" text="{$sData3}" isVisible="false"  id="#2085" layoutPosition="none" />
  1180. </xsl:when>
  1181. <xsl:otherwise>
  1182. <xsl:for-each select="$pData2">
  1183. <label isAcceleratorIgnored="true" isVisible="false"  id="#2085" layoutPosition="none" >
  1184. <xsl:attribute name="text">
  1185. <xsl:value-of select="."/>
  1186. </xsl:attribute>
  1187. </label>
  1188. </xsl:for-each>
  1189. </xsl:otherwise>
  1190. </xsl:choose>
  1191. <Menu id="{generate-id(.)}"  eventHandler="RefFactoidEL" >
  1192. <xsl:if test="$sInsert != ''">
  1193. <xsl:variable name="sInsertState">
  1194. <xsl:if test="$sDefault='insert'">down</xsl:if>
  1195. </xsl:variable>
  1196. <menuItem id="#2041" text="{$sInsert}" tcid="9437" itemState="{$sInsertState}" eventHandler="RefActionEL" />
  1197. </xsl:if>
  1198. <xsl:if test="$sCopy!=''">
  1199. <xsl:variable name="sCopyState">
  1200. <xsl:if test="$sDefault='copy'">down</xsl:if>
  1201. </xsl:variable>
  1202. <menuItem id="#2040" text="{$sCopy}" tcid="19" itemState="{$sCopyState}" eventHandler="RefActionEL" />
  1203. </xsl:if>
  1204. <xsl:if test="$pLinks">
  1205. <xsl:apply-templates select="$pLinks" >
  1206. <xsl:with-param name="fAllowed" >
  1207. <xsl:if test="$sDefault = 'unknown'">true</xsl:if>
  1208. </xsl:with-param>
  1209. <xsl:with-param name="mode" >splitdd</xsl:with-param>
  1210. </xsl:apply-templates>
  1211. </xsl:if>
  1212. <xsl:if test="$pCustom">
  1213. <xsl:apply-templates select="$pCustom[1]" >
  1214. <xsl:with-param name="fFlat" >true</xsl:with-param>
  1215. </xsl:apply-templates>
  1216. </xsl:if>
  1217. </Menu>
  1218. <Button isAcceleratorIgnored="true" id="#2099" accessibleName="{$sName}" isMenuButton="true" menuSrcID="{generate-id(.)}" height="23" eventHandler="RefMenuButtonEL;MsoContextMenuHandler" >
  1219. <xsl:attribute name="text">
  1220. <xsl:choose>
  1221. <xsl:when test="$sText != ''">
  1222. <xsl:value-of select="$sText" />
  1223. </xsl:when>
  1224. <xsl:otherwise>:rcstring(0x01800018L)</xsl:otherwise>
  1225. </xsl:choose>
  1226. </xsl:attribute>
  1227. </Button>
  1228. </xsl:when>
  1229. <xsl:when test="$sMode='dropmenu'">
  1230. <xsl:choose>
  1231. <xsl:when test="$pData1">
  1232. <xsl:for-each select="$pData1">
  1233. <label isAcceleratorIgnored="true" isVisible="false"  id="#2085" layoutPosition="none" >
  1234. <xsl:attribute name="text">
  1235. <xsl:value-of select="."/>
  1236. </xsl:attribute>
  1237. </label>
  1238. </xsl:for-each>
  1239. </xsl:when>
  1240. <xsl:when test="$sData3 != ''">
  1241. <label isAcceleratorIgnored="true" text="{$sData3}" isVisible="false"  id="#2085" layoutPosition="none" />
  1242. </xsl:when>
  1243. <xsl:otherwise>
  1244. <xsl:for-each select="$pData2">
  1245. <label isAcceleratorIgnored="true" isVisible="false"  id="#2085" layoutPosition="none" >
  1246. <xsl:attribute name="text">
  1247. <xsl:value-of select="."/>
  1248. </xsl:attribute>
  1249. </label>
  1250. </xsl:for-each>
  1251. </xsl:otherwise>
  1252. </xsl:choose>
  1253. <DropButton id="#2046" isPromoting="false" accessibleName="{$sName}" eventHandler="RefContextMenuHandlerEL">
  1254. <xsl:if test="$sInsert != ''">
  1255. <xsl:choose>
  1256. <xsl:when test="$sDefault='insert'">
  1257. <menuItem id="#2088" text="{$sInsert}" tcid="9437" eventHandler="RefActionEL" />
  1258. </xsl:when>
  1259. <xsl:otherwise>
  1260. <menuItem id="#2041" text="{$sInsert}" tcid="9437" eventHandler="RefActionEL" />
  1261. </xsl:otherwise>
  1262. </xsl:choose>
  1263. </xsl:if>
  1264. <xsl:if test="$sCopy != ''">
  1265. <xsl:choose>
  1266. <xsl:when test="$sDefault = 'copy'">
  1267. <menuItem id="#2087" text="{$sCopy}" tcid="19" eventHandler="RefActionEL" />
  1268. </xsl:when>
  1269. <xsl:otherwise>
  1270. <menuItem id="#2040" text="{$sCopy}" tcid="19" eventHandler="RefActionEL" />
  1271. </xsl:otherwise>
  1272. </xsl:choose>
  1273. </xsl:if>
  1274. <xsl:if test="$pLinks">
  1275. <xsl:apply-templates select="$pLinks" >
  1276. <xsl:with-param name="fAllowed" >
  1277. <xsl:if test="$sDefault='unknown'">true</xsl:if>
  1278. </xsl:with-param>
  1279. <xsl:with-param name="mode" >dropmenu</xsl:with-param>
  1280. </xsl:apply-templates>
  1281. </xsl:if>
  1282. </DropButton>
  1283. </xsl:when>
  1284. </xsl:choose>
  1285. </xsl:template>
  1286. <xsl:template name="ActionMenu">
  1287. <xsl:param name="insert" />
  1288. <xsl:param name="copy" />
  1289. <xsl:param name="data1" />
  1290. <xsl:param name="data2" />
  1291. <xsl:param name="query" />
  1292. <xsl:param name="querytext" />
  1293. <xsl:param name="hyperlink" />
  1294. <xsl:param name="hyperlinkurl" />
  1295. <xsl:param name="context" />
  1296. <xsl:param name="default" />
  1297. <xsl:param name="menu" />
  1298. </xsl:template>
  1299. <xsl:template name="ActionNewQuery">
  1300. <xsl:param name="sText" />
  1301. <xsl:param name="sCategory" />
  1302. <xsl:param name="sQuery" />
  1303. <xsl:param name="fDefault" />
  1304. <xsl:param name="fNoIcon" />
  1305. <xsl:param name="mode" />
  1306. <xsl:param name="sAction" />
  1307. <xsl:choose>
  1308. <xsl:when test="$fNoIcon='false' and $fDefault='false'">
  1309. <menuItem id="#2042" text="{$sText}"   tcid="7685" eventHandler="RefGoEL" >
  1310. <label id="#2098" isAcceleratorIgnored="true" text="{$sQuery}" isVisible="false" layoutPosition="none"  />
  1311. <xsl:if test="$sCategory != ''">
  1312. <label id="#2045" isAcceleratorIgnored="true" text="{$sCategory}" isVisible="false" layoutPosition="none"  />
  1313. </xsl:if>
  1314. </menuItem>
  1315. </xsl:when>
  1316. <xsl:when test="$fNoIcon='true' and $fDefault='false'">
  1317. <menuItem id="#2042" text="{$sText}"  eventHandler="RefGoEL" >
  1318. <label id="#2098" isAcceleratorIgnored="true" text="{$sQuery}" isVisible="false" layoutPosition="none"  />
  1319. <xsl:if test="$sCategory != ''">
  1320. <label id="#2045" isAcceleratorIgnored="true" text="{$sCategory}" isVisible="false" layoutPosition="none"  />
  1321. </xsl:if>
  1322. </menuItem>
  1323. </xsl:when>
  1324. <xsl:when test="$fNoIcon='false' and $fDefault='true' and $mode='dropmenu'">
  1325. <menuItem id="#2089" text="{$sText}"   tcid="7685" eventHandler="RefGoEL" >
  1326. <label id="#2098" isAcceleratorIgnored="true" text="{$sQuery}" isVisible="false" layoutPosition="none"  />
  1327. <xsl:if test="$sCategory != ''">
  1328. <label id="#2045" isAcceleratorIgnored="true" text="{$sCategory}" isVisible="false" layoutPosition="none"  />
  1329. </xsl:if>
  1330. </menuItem>
  1331. </xsl:when>
  1332. <xsl:when test="$fNoIcon='true' and $fDefault='true' and $mode='dropmenu'">
  1333. <menuItem id="#2089" text="{$sText}"  eventHandler="RefGoEL" >
  1334. <label id="#2098" isAcceleratorIgnored="true" text="{$sQuery}" isVisible="false" layoutPosition="none"  />
  1335. <xsl:if test="$sCategory != ''">
  1336. <label id="#2045" isAcceleratorIgnored="true" text="{$sCategory}" isVisible="false" layoutPosition="none"  />
  1337. </xsl:if>
  1338. </menuItem>
  1339. </xsl:when>
  1340. <xsl:when test="$fNoIcon='false' and $fDefault='true' and $mode='splitdd'">
  1341. <menuItem id="#2042" text="{$sText}"   tcid="7685" eventHandler="RefGoEL" itemState="down" >
  1342. <label id="#2098" isAcceleratorIgnored="true" text="{$sQuery}" isVisible="false" layoutPosition="none"  />
  1343. <xsl:if test="$sCategory != ''">
  1344. <label id="#2045" isAcceleratorIgnored="true" text="{$sCategory}" isVisible="false" layoutPosition="none"  />
  1345. </xsl:if>
  1346. </menuItem>
  1347. </xsl:when>
  1348. <xsl:when test="$fNoIcon='true' and $fDefault='true' and $mode='splitdd'">
  1349. <menuItem id="#2042" text="{$sText}"  eventHandler="RefGoEL" itemState="down" >
  1350. <label id="#2098" isAcceleratorIgnored="true" text="{$sQuery}" isVisible="false" layoutPosition="none" />
  1351. <xsl:if test="$sCategory != ''">
  1352. <label id="#2045" isAcceleratorIgnored="true" text="{$sCategory}" isVisible="false" layoutPosition="none"  />
  1353. </xsl:if>
  1354. </menuItem>
  1355. </xsl:when>
  1356. </xsl:choose>
  1357. </xsl:template>
  1358. <xsl:template name="ActionHyperlink">
  1359. <xsl:param name="sText" />
  1360. <xsl:param name="sUrl" />
  1361. <xsl:param name="fDefault" />
  1362. <xsl:param name="fNoIcon" />
  1363. <xsl:param name="fPay" />
  1364. <xsl:param name="mode" />
  1365. <xsl:choose>
  1366. <xsl:when test="$fNoIcon = 'false' and $fDefault = 'false' and $fPay = 'false'">
  1367. <menuItem id="#2043" text="{$sText}" tcid="1576" eventHandler="RefNavEL" textAlign="EndEllipsis">
  1368. <label id="#2050" isAcceleratorIgnored="true" text="{$sUrl}" isVisible="false" layoutPosition="none" />
  1369. </menuItem>
  1370. </xsl:when>
  1371. <xsl:when test="$fNoIcon = 'false' and $fDefault = 'false' and $fPay = 'true'">
  1372. <menuItem id="#2043" text="{$sText}" tcid="9761" eventHandler="RefNavEL" textAlign="EndEllipsis">
  1373. <label id="#2050" isAcceleratorIgnored="true" text="{$sUrl}" isVisible="false" layoutPosition="none" />
  1374. </menuItem>
  1375. </xsl:when>
  1376. <xsl:when test="$fNoIcon = 'true' and $fDefault = 'false'">
  1377. <menuItem id="#2043" text="{$sText}" eventHandler="RefNavEL" textAlign="EndEllipsis">
  1378. <label id="#2050" isAcceleratorIgnored="true" text="{$sUrl}" isVisible="false" layoutPosition="none" />
  1379. </menuItem>
  1380. </xsl:when>
  1381. <xsl:when test="$fNoIcon = 'false' and $fDefault = 'true' and $mode='dropmenu' and $fPay = 'false'">
  1382. <menuItem id="#2090" text="{$sText}" tcid="1576" eventHandler="RefNavEL" textAlign="EndEllipsis">
  1383. <label id="#2050" isAcceleratorIgnored="true" text="{$sUrl}" isVisible="false" layoutPosition="none" />
  1384. </menuItem>
  1385. </xsl:when>
  1386. <xsl:when test="$fNoIcon = 'false' and $fDefault = 'true' and $mode='dropmenu' and $fPay = 'true'">
  1387. <menuItem id="#2090" text="{$sText}" tcid="9761" eventHandler="RefNavEL" textAlign="EndEllipsis">
  1388. <label id="#2050" isAcceleratorIgnored="true" text="{$sUrl}" isVisible="false" layoutPosition="none" />
  1389. </menuItem>
  1390. </xsl:when>
  1391. <xsl:when test="$fNoIcon = 'true' and $fDefault = 'true' and $mode='dropmenu'">
  1392. <menuItem id="#2090" text="{$sText}" eventHandler="RefNavEL" textAlign="EndEllipsis">
  1393. <label id="#2050" isAcceleratorIgnored="true" text="{$sUrl}" isVisible="false" layoutPosition="none" />
  1394. </menuItem>
  1395. </xsl:when>
  1396. <xsl:when test="$fNoIcon = 'false' and $fDefault = 'true' and $mode='splitdd' and $fPay = 'false'">
  1397. <menuItem id="#2090" text="{$sText}" tcid="1576" eventHandler="RefNavEL" textAlign="EndEllipsis" itemState="down">
  1398. <label id="#2050" isAcceleratorIgnored="true" text="{$sUrl}" isVisible="false" layoutPosition="none" />
  1399. </menuItem>
  1400. </xsl:when>
  1401. <xsl:when test="$fNoIcon = 'false' and $fDefault = 'true' and $mode='splitdd' and $fPay = 'true'">
  1402. <menuItem id="#2090" text="{$sText}" tcid="9761" eventHandler="RefNavEL" textAlign="EndEllipsis" itemState="down">
  1403. <label id="#2050" isAcceleratorIgnored="true" text="{$sUrl}" isVisible="false" layoutPosition="none" />
  1404. </menuItem>
  1405. </xsl:when>
  1406. <xsl:when test="$fNoIcon = 'true' and $fDefault = 'true' and $mode='splitdd'">
  1407. <menuItem id="#2090" text="{$sText}" eventHandler="RefNavEL" textAlign="EndEllipsis" itemState="down">
  1408. <label id="#2050" isAcceleratorIgnored="true" text="{$sUrl}" isVisible="false" layoutPosition="none" />
  1409. </menuItem>
  1410. </xsl:when>
  1411. </xsl:choose>
  1412. </xsl:template>
  1413. <xsl:template name="Factoid">
  1414. <xsl:param name="sXml" />
  1415. <xsl:param name="sName" />
  1416. <xsl:param name="sXMLNS" />
  1417. <xsl:param name="sTag" />
  1418. <xsl:param name="sUrl" />
  1419. <xsl:param name="sPropBag" />
  1420. <xsl:param name="fFlat" />
  1421. <xsl:param name="sDisplayname" />
  1422. <xsl:choose>
  1423. <xsl:when test="$fFlat = 'true'">
  1424. <menuDivider>
  1425. <label isAcceleratorIgnored="true" isVisible="false" id="#2031"  text="{$sXMLNS}"    layoutPosition="none" />
  1426. <label isAcceleratorIgnored="true" isVisible="false" id="#2032"     text="{$sXml}"      layoutPosition="none" />
  1427. <label isAcceleratorIgnored="true" isVisible="false" id="#2034"     text="{$sTag}"      layoutPosition="none" />
  1428. <label isAcceleratorIgnored="true" isVisible="false" id="#2033"    text="{$sName}"     layoutPosition="none" />
  1429. <label isAcceleratorIgnored="true" isVisible="false" id="#2035"    text="{$fFlat}"     layoutPosition="none" />
  1430. <label isAcceleratorIgnored="true" isVisible="false" id="#2036" text="{$sPropBag}"  layoutPosition="none" />
  1431. </menuDivider>
  1432. <xsl:if test="$sUrl != ''">
  1433. <menuItem id="#2037" eventHandler="RefNavEL" textAlign="EndEllipsis" >
  1434. <xsl:attribute name="text">:rcstring(0x0180000DL)</xsl:attribute>
  1435. <label isAcceleratorIgnored="true" id="#2050" text="{$sUrl}" isVisible="false" layoutPosition="none" />
  1436. </menuItem>
  1437. </xsl:if>
  1438. </xsl:when>
  1439. <xsl:otherwise>
  1440. <menuDivider />
  1441. <menuItem id="#2039" text="{$sDisplayname}" eventHandler="RefFactoidEL">
  1442. <label isAcceleratorIgnored="true" isVisible="false" id="#2031"  text="{$sXMLNS}"   layoutPosition="none" />
  1443. <label isAcceleratorIgnored="true" isVisible="false" id="#2032"     text="{$sXml}"     layoutPosition="none" />
  1444. <label isAcceleratorIgnored="true" isVisible="false" id="#2034"     text="{$sTag}"     layoutPosition="none" />
  1445. <label isAcceleratorIgnored="true" isVisible="false" id="#2033"    text="{$sName}"    layoutPosition="none" />
  1446. <label isAcceleratorIgnored="true" isVisible="false" id="#2035"    text="'false'"     layoutPosition="none" />
  1447. <label isAcceleratorIgnored="true" isVisible="false" id="#2036" text="{$sPropBag}" layoutPosition="none" />
  1448. <xsl:if test="$sUrl != ''">
  1449. <menuDivider />
  1450. <menuItem id="#2037" eventHandler="RefNavEL" textAlign="EndEllipsis" >
  1451. <xsl:attribute name="text">:rcstring(0x0180000DL)</xsl:attribute>
  1452. <label isAcceleratorIgnored="true" id="#2050" text="{$sUrl}" isVisible="false" layoutPosition="none" />
  1453. </menuItem>
  1454. </xsl:if>
  1455. </menuItem>
  1456. </xsl:otherwise>
  1457. </xsl:choose>
  1458. </xsl:template>
  1459. <xsl:template name="Heading">
  1460. <xsl:param name="pContext" /><xsl:param name="sText" />
  1461. <xsl:param name="tRtl" />
  1462. <xsl:param name="iLevel" />
  1463. <xsl:param name="cLevelSkipped" />
  1464. <xsl:param name="pAction" /><xsl:param name="sContent" />
  1465. <xsl:param name="spCallback" /><xsl:param name="pOriginator"/><xsl:param name="tCollapsed" />
  1466. <xsl:param name="tCollapsible" />
  1467. <xsl:param name="fAlways" />
  1468. <xsl:param name="idService" />
  1469. <xsl:param name="sStatus" />
  1470. <xsl:param name="iStart" />
  1471. <xsl:param name="cSize" />
  1472. <xsl:param name="cMax" />
  1473. <xsl:variable name="sLayoutPosition">
  1474. <xsl:choose>
  1475. <xsl:when test="$tCollapsed='true'">none</xsl:when>
  1476. <xsl:otherwise>auto</xsl:otherwise>
  1477. </xsl:choose>
  1478. </xsl:variable>
  1479. <xsl:variable name="idControl">
  1480. <xsl:choose>
  1481. <xsl:when test="$iLevel = 1">#2103</xsl:when>
  1482. <xsl:when test="$tCollapsible='false'">#2101</xsl:when>
  1483. <xsl:when test="$tCollapsed='false'">#2101</xsl:when>
  1484. <xsl:when test="$tCollapsed='true'">#2101</xsl:when>
  1485. <xsl:otherwise>#2100</xsl:otherwise>
  1486. </xsl:choose>
  1487. </xsl:variable>
  1488. <xsl:variable name="iIndent">
  1489. <xsl:choose>
  1490. <xsl:when test="$cLevelSkipped = 0">0</xsl:when>
  1491. <xsl:when test="$iLevel = 5">
  1492. <xsl:value-of select="$cLevelSkipped * 8 - 14" />
  1493. </xsl:when>
  1494. <xsl:otherwise>
  1495. <xsl:value-of select="$cLevelSkipped * 8 - 6" />
  1496. </xsl:otherwise>
  1497. </xsl:choose>
  1498. </xsl:variable>
  1499. <groupBox sheet="#H{$iLevel}" id="{$idControl}" expandToFillHoriz="true">
  1500. <xsl:if test="$cLevelSkipped > 0">
  1501. <xsl:attribute name="indentBy">
  1502. <xsl:value-of select="$iIndent" />
  1503. </xsl:attribute>
  1504. </xsl:if>
  1505. <xsl:if test="$tCollapsed='true'">
  1506. <xsl:attribute name="isCollapsed">true</xsl:attribute>
  1507. </xsl:if>
  1508. <xsl:choose>
  1509. <xsl:when test="$tCollapsible='false'">
  1510. <xsl:attribute name="isCollapsible">false</xsl:attribute>
  1511. </xsl:when>
  1512. <xsl:otherwise>
  1513. <xsl:attribute name="isCollapsible">true</xsl:attribute>
  1514. </xsl:otherwise>
  1515. </xsl:choose>
  1516. <xsl:if test="$iLevel = 1">
  1517. <xsl:attribute name="eventHandler">RefNameEL</xsl:attribute>
  1518. </xsl:if>
  1519. <groupHeader isAcceleratorIgnored="true" text="{$sText}" id="#2091" textAlign="WrapLeft" expandToFillVert="false" expandToFillHoriz="true">
  1520. <xsl:if test="$tRtl != ''">
  1521. <xsl:attribute name="direction">
  1522. <xsl:choose>
  1523. <xsl:when test="$tRtl = 'true'">RTL</xsl:when>
  1524. <xsl:when test="$tRtl = 'false'">LTR</xsl:when>
  1525. </xsl:choose>
  1526. </xsl:attribute>
  1527. </xsl:if>
  1528. <xsl:if test="$iLevel = 1">
  1529. <label isAcceleratorIgnored="true" id="#2067"     text="{$idService}" isVisible="false" layoutPosition="none" />
  1530. <label isAcceleratorIgnored="true" id="#2068" text="{$sStatus}"   isVisible="false" layoutPosition="none"  />
  1531. <label isAcceleratorIgnored="true" id="#2069"        text="{$iStart}"    isVisible="false" layoutPosition="none"  />
  1532. <label isAcceleratorIgnored="true" id="#2070"         text="{$cSize}"     isVisible="false" layoutPosition="none"  />
  1533. <label isAcceleratorIgnored="true" id="#2071"          text="{$cMax}"      isVisible="false" layoutPosition="none"  />
  1534. <xsl:variable name="sServiceContext">
  1535. <xsl:if test="$pOriginator" >
  1536. <xsl:apply-templates select="$pOriginator" mode="response">
  1537. <xsl:with-param name="mode" select="'encode'" />
  1538. <xsl:with-param name="uri" select="namespace-uri()"/>
  1539. </xsl:apply-templates>
  1540. </xsl:if>
  1541. </xsl:variable>
  1542. <xsl:if test="$sServiceContext != ''">
  1543. <label isAcceleratorIgnored="true" id="#2073" isVisible="false" layoutPosition="none" text="{$sServiceContext}" />
  1544. </xsl:if>
  1545. <xsl:if test="$fAlways = 'true'">
  1546. <label isAcceleratorIgnored="true" id="#2092" text="true" isVisible="false" layoutPosition="none"  />
  1547. </xsl:if>
  1548. </xsl:if>
  1549. </groupHeader>
  1550. <groupContent id="#2052" expandToFillHoriz="true" layoutPosition="{$sLayoutPosition}">
  1551. <xsl:attribute name="padding">
  1552. <xsl:choose>
  1553. <xsl:when test="$iLevel = 1">9,1,7,0</xsl:when>
  1554. <xsl:otherwise>9,1,0,0</xsl:otherwise>
  1555. </xsl:choose>
  1556. </xsl:attribute>
  1557. <xsl:choose>
  1558. <xsl:when test="$sContent and $sContent!=''">
  1559. <label textAlign="wrapLeft" text="{$sContent}" expandToFillHoriz="true" />
  1560. </xsl:when>
  1561. <xsl:when test="$spCallback != ''">
  1562. <xsl:call-template name="ContentCallback">
  1563. <xsl:with-param name="pContext" select="$pContext" />
  1564. <xsl:with-param name="spCallback" select="$spCallback" />
  1565. <xsl:with-param name="idService" select="$idService" />
  1566. <xsl:with-param name="iStart" select="$iStart" />
  1567. <xsl:with-param name="cSize" select="$cSize" />
  1568. <xsl:with-param name="cMax" select="$cMax" />
  1569. </xsl:call-template>
  1570. </xsl:when>
  1571. <xsl:otherwise>
  1572. <xsl:apply-templates select="$pContext">
  1573. <xsl:with-param name="iLevel" select="$iLevel" />
  1574. </xsl:apply-templates>
  1575. </xsl:otherwise>
  1576. </xsl:choose>
  1577. <xsl:if test="$pAction">
  1578. <element layoutChildren="flow" id="#2058" >
  1579. <xsl:apply-templates select="$pAction" />
  1580. </element>
  1581. </xsl:if>
  1582. </groupContent>
  1583. </groupBox>
  1584. </xsl:template>
  1585. <xsl:template name="Result">
  1586. <xsl:param name="pContext" /><xsl:param name="sRevision" />
  1587. <xsl:param name="sBuild" />
  1588. <xsl:param name="tRtl" />
  1589. <xsl:choose>
  1590. <xsl:when test="$tRtl != ''">
  1591. <xsl:variable name="sDirection">
  1592. <xsl:choose>
  1593. <xsl:when test="$tRtl='true'">RTL</xsl:when>
  1594. <xsl:when test="$tRtl='false'">LTR</xsl:when>
  1595. </xsl:choose>
  1596. </xsl:variable>
  1597. <element direction="{$sDirection}" layoutChildren="vertical" expandToFillHoriz="true" >
  1598. <xsl:apply-templates select="$pContext">
  1599. <xsl:with-param name="iLevel" select="'1'" />
  1600. </xsl:apply-templates>
  1601. </element>
  1602. </xsl:when>
  1603. <xsl:otherwise>
  1604. <xsl:apply-templates select="$pContext">
  1605. <xsl:with-param name="iLevel" select="'1'" />
  1606. </xsl:apply-templates>
  1607. </xsl:otherwise>
  1608. </xsl:choose>
  1609. </xsl:template>
  1610. <xsl:template name="Document">
  1611. <xsl:param name="sTitle" />
  1612. <xsl:param name="sDescription" />
  1613. <xsl:param name="sUrlDisplay" />
  1614. <xsl:param name="sUrlDestination" />
  1615. <xsl:param name="sUrlLink" />
  1616. <xsl:param name="sUrlExtension" />
  1617. <xsl:param name="pRequery" />
  1618. <xsl:param name="sImage" />
  1619. <xsl:param name="sImageAltText" />
  1620. <xsl:param name="fForPay" />
  1621. <xsl:param name="tRtl" />
  1622. <xsl:variable name="sNewTitle">
  1623. <xsl:choose>
  1624. <xsl:when test="$sTitle != ''">
  1625. <xsl:value-of select="$sTitle" />
  1626. </xsl:when>
  1627. <xsl:otherwise>:rcstring(0x01800019L)</xsl:otherwise>
  1628. </xsl:choose>
  1629. </xsl:variable>
  1630. <groupBox sheet="#H2" id="#2100" expandToFillHoriz="true" isCollapsible="true">
  1631. <groupHeader isAcceleratorIgnored="true" text="{$sNewTitle}" id="#2091" textAlign="WrapLeft" expandToFillVert="false" expandToFillHoriz="true"/>
  1632. <groupContent layoutChildren="vertical" id="#2052" expandToFillHoriz="true" padding="11,0,0,0">
  1633. <xsl:if test="$sDescription != ''">
  1634. <xsl:call-template name="Text" >
  1635. <xsl:with-param name="fWrapping" select="'true'" />
  1636. <xsl:with-param name="sText" select="$sDescription" />
  1637. <xsl:with-param name="sType" select="'description'" />
  1638. <xsl:with-param name="fPadding" select="'none'" />
  1639. <xsl:with-param name="tRtl" select="$tRtl" />
  1640. </xsl:call-template>
  1641. </xsl:if>
  1642. <xsl:if test="$sUrlLink != ''">
  1643. <element layoutChildren="horizontal" childrenMargin="1"  >
  1644. <xsl:if test="$sUrlExtension != ''">
  1645. <ImageExt fileName=".{$sUrlExtension}" />
  1646. </xsl:if>
  1647. <xsl:call-template name="HyperLink">
  1648. <xsl:with-param name="sText" select="$sUrlDisplay" />
  1649. <xsl:with-param name="sTooltip" select="$sUrlDestination" />
  1650. <xsl:with-param name="sAction" select="'fetch'" />
  1651. <xsl:with-param name="sQuery" select="$sUrlLink" />
  1652. <xsl:with-param name="fPay" select="$fForPay" />
  1653. </xsl:call-template>
  1654. </element>
  1655. </xsl:if>
  1656. <xsl:if test="$sImage != ''">
  1657. <imageURL URL="{$sImage}" screentip="{$sImageAltText}" accessibleName="{$sImageAltText}" />
  1658. </xsl:if>
  1659. </groupContent>
  1660. </groupBox>
  1661. </xsl:template>
  1662. <xsl:template name="Status">
  1663. <xsl:param name="sStatus" />
  1664. <xsl:param name="tRtl" />
  1665. <xsl:param name="idService" />
  1666. <xsl:if test="$sStatus='ERROR_NO_RESPONSE'">
  1667. <element layoutChildren="vertical" expandToFillHoriz="true" id="RR_{$idService}">
  1668. <label id="#2059" text="{$sStatus}" textAlign="WrapLeft">
  1669. <xsl:if test="$tRtl != ''">
  1670. <xsl:attribute name="direction">
  1671. <xsl:choose>
  1672. <xsl:when test="$tRtl = 'true'">RTL</xsl:when>
  1673. <xsl:when test="$tRtl = 'false'">LTR</xsl:when>
  1674. </xsl:choose>
  1675. </xsl:attribute>
  1676. </xsl:if>
  1677. </label>
  1678. <hyperlink isAcceleratorIgnored="true" text="Search again" ID="#2060" eventHandler="RefRequeryEL" />
  1679. </element>
  1680. </xsl:if>
  1681. </xsl:template>
  1682. <xsl:template name="ServiceResult">
  1683. <xsl:param name="pContext" />
  1684. <xsl:param name="spCallback" />
  1685. <xsl:param name="idService" />
  1686. <xsl:param name="sStatus" />
  1687. <xsl:param name="iStart"/>
  1688. <xsl:param name="cSize"/>
  1689. <xsl:param name="cMax" />
  1690. <xsl:param name="pOriginator" />
  1691. <xsl:param name="fAlwaysSearched" />
  1692. <xsl:choose>
  1693. <xsl:when test="$sStatus='ERROR_NO_RESULTS_FOUND' or $sStatus='ERROR' or $sStatus='ERROR_SERVER' or $sStatus='ERROR_BAD_RESULTS' or $sStatus='ERROR_NO_RESPONSE' or $sStatus='ERROR_SERVER_TRANSIENT' or $sStatus='ERROR_OUT_OF_ORDER'  or $sStatus='ERROR_BAD_QUERY'">
  1694. <element id="#2080" isVisible="false" expandToFillHoriz="true" layoutPosition="none" >
  1695. <xsl:call-template name="Heading">
  1696. <xsl:with-param name="sText" select="'Invalid service ID'" />
  1697. <xsl:with-param name="iLevel" select="'1'" />
  1698. <xsl:with-param name="pContext" select="$pContext" />
  1699. <xsl:with-param name="spCallback" select="$spCallback" />
  1700. <xsl:with-param name="tCollapsible" select="'true'" />
  1701. <xsl:with-param name="idService" select="$idService" />
  1702. <xsl:with-param name="pOriginator" select="$pOriginator" />
  1703. <xsl:with-param name="tCollapsed" select="'auto'" />
  1704. <xsl:with-param name="sStatus" >
  1705. <xsl:call-template name="StatusTitle">
  1706. <xsl:with-param name="sStatus" select="$sStatus"/>
  1707. </xsl:call-template>
  1708. </xsl:with-param>
  1709. <xsl:with-param name="sContent">
  1710. <xsl:call-template name="SStatusContent">
  1711. <xsl:with-param name="sStatus" select="$sStatus"/>
  1712. </xsl:call-template>
  1713. </xsl:with-param>
  1714. </xsl:call-template>
  1715. </element>
  1716. </xsl:when>
  1717. <xsl:otherwise>
  1718. <xsl:call-template name="Heading">
  1719. <xsl:with-param name="sText" select="'Invalid service ID'" />
  1720. <xsl:with-param name="iLevel" select="'1'" />
  1721. <xsl:with-param name="pContext" select="$pContext" />
  1722. <xsl:with-param name="spCallback" select="$spCallback" />
  1723. <xsl:with-param name="tCollapsible" select="'true'" />
  1724. <xsl:with-param name="idService" select="$idService" />
  1725. <xsl:with-param name="pOriginator" select="$pOriginator" />
  1726. <xsl:with-param name="tCollapsed">
  1727. <xsl:if test="$fAlwaysSearched='true'">false</xsl:if>
  1728. </xsl:with-param>
  1729. <xsl:with-param name="fAlways" select="$fAlwaysSearched" />
  1730. <xsl:with-param name="iStart" select="$iStart" />
  1731. <xsl:with-param name="cSize" select="$cSize" />
  1732. <xsl:with-param name="cMax" select="$cMax" />
  1733. <xsl:with-param name="sStatus" >
  1734. <xsl:call-template name="StatusTitle">
  1735. <xsl:with-param name="sStatus" select="$sStatus" />
  1736. </xsl:call-template>
  1737. </xsl:with-param>
  1738. <xsl:with-param name="sContent">
  1739. <xsl:call-template name="SStatusContent">
  1740. <xsl:with-param name="sStatus" select="$sStatus"/>
  1741. </xsl:call-template>
  1742. </xsl:with-param>
  1743. </xsl:call-template>
  1744. </xsl:otherwise>
  1745. </xsl:choose>
  1746. </xsl:template>
  1747. <xsl:template name="SStatusContent">
  1748. <xsl:param name="sStatus"/>
  1749. <xsl:choose>
  1750. <xsl:when test="$sStatus='SUCCESS'"/>
  1751. <xsl:when test="$sStatus='ERROR_NO_RESPONSE'">:rcstring(0x01800029L)</xsl:when>
  1752. <xsl:when test="$sStatus='ERROR'">:rcstring(0x0180002BL)</xsl:when>
  1753. <xsl:when test="$sStatus='ERROR_NO_RESULTS_FOUND'">:rcstring(0x0180002BL)</xsl:when>
  1754. <xsl:when test="$sStatus='ERROR_SERVER'">:rcstring(0x0180002BL)</xsl:when>
  1755. <xsl:when test="$sStatus='ERROR_BAD_PARAMETERS'">:rcstring(0x0180002CL)</xsl:when>
  1756. <xsl:when test="$sStatus='ERROR_OUT_OF_ORDER'">:rcstring(0x0180002DL)</xsl:when>
  1757. <xsl:when test="$sStatus='ERROR_SERVER_TRANSIENT'">:rcstring(0x0180002DL)</xsl:when>
  1758. <xsl:when test="$sStatus='ERROR_NO_CONNECTION'">:rcstring(0x0180002EL)</xsl:when>
  1759. <xsl:when test="$sStatus='ERROR_NO_AUTHENTICATION'">:rcstring(0x0180002FL)</xsl:when>
  1760. <xsl:when test="$sStatus='ERROR_NO_AUTHORIZATION'">:rcstring(0x01800030L)</xsl:when>
  1761. <xsl:otherwise>:rcstring(0x0180002AL)</xsl:otherwise>
  1762. </xsl:choose>
  1763. </xsl:template>
  1764. <xsl:template name="Range">
  1765. <xsl:param name="pContext" /><xsl:param name="idService" />
  1766. <xsl:param name="iStart"/>
  1767. <xsl:param name="cSize"/>
  1768. <xsl:param name="cMax" />
  1769. <xsl:param name="pOriginator" />
  1770. <xsl:param name="sStatus" />
  1771. <xsl:param name="fAlwaysSearched" />
  1772. <xsl:apply-templates select="$pContext"><xsl:with-param name="idService" select="$idService" />
  1773. <xsl:with-param name="sStatus" select="$sStatus" />
  1774. <xsl:with-param name="pOriginator" select="$pOriginator" />
  1775. <xsl:with-param name="fAlwaysSearched" select="$fAlwaysSearched" />
  1776. <xsl:with-param name="iStart" select="$iStart" />
  1777. <xsl:with-param name="cSize" select="$cSize" />
  1778. <xsl:with-param name="cMax" select="$cMax" />
  1779. </xsl:apply-templates>
  1780. </xsl:template>
  1781. <xsl:template name="RangeNavigation">
  1782. <xsl:param name="idService" />
  1783. <xsl:param name="iStart" />
  1784. <xsl:param name="cSize" />
  1785. <xsl:param name="cMax" />
  1786. <xsl:param name="sPosition" />
  1787. <xsl:variable name="sCount">
  1788. <xsl:if test="$cSize > 1">
  1789. <xsl:text><![CDATA[ ]]></xsl:text>
  1790. <xsl:value-of select="$cSize" />
  1791. </xsl:if>
  1792. </xsl:variable>
  1793. <xsl:variable name="sMax">
  1794. <xsl:choose>
  1795. <xsl:when test="$cMax > $iStart">
  1796. <xsl:value-of select="$cMax" />
  1797. </xsl:when>
  1798. <xsl:otherwise>
  1799. <xsl:value-of select="$iStart + $cSize + 1" />
  1800. </xsl:otherwise>
  1801. </xsl:choose>
  1802. </xsl:variable>
  1803. <xsl:variable name="idClass">
  1804. <xsl:choose>
  1805. <xsl:when test="$sPosition = 'top'">#2107</xsl:when>
  1806. <xsl:when test="$sPosition = 'middle'">#2108</xsl:when>
  1807. <xsl:when test="$sPosition = 'bottom'">#2109</xsl:when>
  1808. </xsl:choose>
  1809. </xsl:variable>
  1810. <element layoutChildren="flow" id="#2044" sheet="#Orientation" class="{$idClass}" alignChildren="left" sameHeightChildren="true" eventHandler="RefRangeEL">
  1811. <xsl:if test="$iStart > 1">
  1812. <hyperlink isAcceleratorIgnored="true" id="#2056" >
  1813. <xsl:attribute name="text">
  1814. <xsl:text>:rcstring(0x01800010L)</xsl:text>
  1815. </xsl:attribute>
  1816. </hyperlink>
  1817. </xsl:if>
  1818. <xsl:if test="$iStart > 1 and $iStart + $cSize - 1  < $cMax">
  1819. <label text="|"/>
  1820. </xsl:if>
  1821. <xsl:if test="$iStart + $cSize - 1  < $cMax">
  1822. <hyperlink isAcceleratorIgnored="true" id="#2055" >
  1823. <xsl:attribute name="text">
  1824. <xsl:text>:rcstring(0x01800011L)</xsl:text>
  1825. </xsl:attribute>
  1826. </hyperlink>
  1827. </xsl:if>
  1828. <label isAcceleratorIgnored="true" id="#2069" text="{$iStart}" isVisible="false" layoutPosition="none"  />
  1829. <label isAcceleratorIgnored="true" id="#2070"  text="{$cSize}"  isVisible="false" layoutPosition="none"  />
  1830. <label isAcceleratorIgnored="true" id="#2071"   text="{$cMax}"   isVisible="false" layoutPosition="none"  />
  1831. </element>
  1832. </xsl:template>
  1833. <xsl:template name="StatusTitle">
  1834. <xsl:param name="sStatus"/>
  1835. <xsl:choose>
  1836. <xsl:when test="$sStatus='SUCCESS'"></xsl:when>
  1837. <xsl:when test="$sStatus='ERROR_NO_RESPONSE'">:rcstring(0x01800021L)</xsl:when>
  1838. <xsl:when test="$sStatus='ERROR'">:rcstring(0x01800023L)</xsl:when>
  1839. <xsl:when test="$sStatus='ERROR_NO_RESULTS_FOUND'">:rcstring(0x01800023L)</xsl:when>
  1840. <xsl:when test="$sStatus='ERROR_SERVER'">:rcstring(0x01800023L)</xsl:when>
  1841. <xsl:when test="$sStatus='ERROR_BAD_PARAMETERS'">:rcstring(0x01800024L)</xsl:when>
  1842. <xsl:when test="$sStatus='ERROR_OUT_OF_ORDER'">:rcstring(0x01800025L)</xsl:when>
  1843. <xsl:when test="$sStatus='ERROR_SERVER_TRANSIENT'">:rcstring(0x01800025L)</xsl:when>
  1844. <xsl:when test="$sStatus='ERROR_NO_CONNECTION'">:rcstring(0x01800026L)</xsl:when>
  1845. <xsl:when test="$sStatus='ERROR_NO_AUTHENTICATION'">:rcstring(0x01800027L)</xsl:when>
  1846. <xsl:when test="$sStatus='ERROR_NO_AUTHORIZATION'">:rcstring(0x01800028L)</xsl:when>
  1847. <xsl:otherwise>:rcstring(0x01800022L)</xsl:otherwise>
  1848. </xsl:choose>
  1849. </xsl:template>
  1850. <xsl:template name="QueryResponse">
  1851. <xsl:param name="pContext" /><xsl:param name="idService" />
  1852. <xsl:param name="fRequery" />
  1853. <xsl:param name="pOriginator" />
  1854. <xsl:param name="sStatus" />
  1855. <xsl:param name="fAlwaysSearched" />
  1856. <xsl:choose>
  1857. <xsl:when test="$fRequery!='true'">
  1858. <element layoutChildren="vertical" expandToFillHoriz="true" id="#2072">
  1859. <xsl:apply-templates select="$pContext"><xsl:with-param name="idService" select="$idService" />
  1860. <xsl:with-param name="sStatus" select="$sStatus" />
  1861. <xsl:with-param name="pOriginator" select="$pOriginator" />
  1862. <xsl:with-param name="fAlwaysSearched" select="$fAlwaysSearched" />
  1863. </xsl:apply-templates>
  1864. </element>
  1865. </xsl:when>
  1866. <xsl:otherwise>
  1867. <xsl:apply-templates select="$pContext"><xsl:with-param name="idService" select="$idService" />
  1868. <xsl:with-param name="sStatus" select="$sStatus" />
  1869. <xsl:with-param name="pOriginator" select="$pOriginator" />
  1870. <xsl:with-param name="fAlwaysSearched" select="$fAlwaysSearched" />
  1871. </xsl:apply-templates>
  1872. </xsl:otherwise>
  1873. </xsl:choose>
  1874. </xsl:template>
  1875. <xsl:template name="NewQueryResponse">
  1876. <xsl:param name="pContext" /><xsl:param name="sRevision" /><xsl:param name="sBuild" /><xsl:apply-templates select="$pContext" /></xsl:template>
  1877. <xsl:template name="FFromSForm">
  1878. <xsl:param name="sTest" />
  1879. <xsl:param name="fDefault" />
  1880. <xsl:choose>
  1881. <xsl:when test="$sTest = 'true'  or $sTest = 1">true</xsl:when>
  1882. <xsl:when test="$sTest = 'false' or $sTest = 0">false</xsl:when>
  1883. <xsl:when test="$fDefault != ''">
  1884. <xsl:value-of select="$fDefault" />
  1885. </xsl:when>
  1886. <xsl:otherwise>false</xsl:otherwise>
  1887. </xsl:choose>
  1888. </xsl:template>
  1889. <xsl:template name="TFromSForm">
  1890. <xsl:param name="sTest" />
  1891. <xsl:choose>
  1892. <xsl:when test="$sTest = 'true'  or $sTest = 1">true</xsl:when>
  1893. <xsl:when test="$sTest = 'false' or $sTest = 0">false</xsl:when>
  1894. <xsl:otherwise></xsl:otherwise>
  1895. </xsl:choose>
  1896. </xsl:template>
  1897. <xsl:template name="SFormAction">
  1898. <xsl:choose>
  1899. <xsl:when test="@action='requery'">requery</xsl:when>
  1900. <xsl:when test="@action='callback'">callback</xsl:when>
  1901. <xsl:otherwise>none</xsl:otherwise>
  1902. </xsl:choose>
  1903. </xsl:template>
  1904. <xsl:template name="IFormWidth">
  1905. <xsl:if test="@width != '' and @width > 0">
  1906. <xsl:value-of select="@width" />
  1907. </xsl:if>
  1908. </xsl:template>
  1909. <xsl:template match="f:Frame/f:Frame | f:Form/f:Frame">
  1910. <xsl:call-template name="ControlFrame">
  1911. <xsl:with-param name="pContext" select="f:Button | f:Checkbox | f:Edit | f:Hyperlink | f:Label | f:Listbox | f:Navigation | f:NewQuery | f:RadioGroup | f:Hyperlink" />
  1912. <xsl:with-param name="fVertical" select="'fFalse'" />
  1913. </xsl:call-template>
  1914. </xsl:template>
  1915. <xsl:template match="f:Option/f:Frame | f:Checkbox/f:Frame">
  1916. <xsl:call-template name="ControlFrame">
  1917. <xsl:with-param name="pContext" select="f:Button | f:Checkbox | f:Edit | f:Label | f:Listbox | f:Navigation | f:NewQuery | f:RadioGroup | f:Hyperlink" />
  1918. <xsl:with-param name="fVertical" select="'true'" />
  1919. </xsl:call-template>
  1920. </xsl:template>
  1921. <xsl:template match="f:Form/f:Label | f:Frame/f:Label">
  1922. <xsl:call-template name="Label">
  1923. <xsl:with-param name="tRtl" >
  1924. <xsl:call-template name="TFromSForm">
  1925. <xsl:with-param name="sTest" select="@rtl" />
  1926. </xsl:call-template>
  1927. </xsl:with-param>
  1928. <xsl:with-param name="sText">
  1929. <xsl:value-of select="text()" />
  1930. </xsl:with-param>
  1931. </xsl:call-template>
  1932. </xsl:template>
  1933. <xsl:template match="f:Form/f:Hyperlink | f:Frame/f:Hyperlink">
  1934. <xsl:if test="@id and @id!=''">
  1935. <xsl:call-template name="HyperLink">
  1936. <xsl:with-param name="idControl" select="@id" />
  1937. <xsl:with-param name="sSubmitUrl" select="@submitUrl" />
  1938. <xsl:with-param name="sTooltip" select="@tooltip" />
  1939. <xsl:with-param name="fWrapping" select="'true'" />
  1940. <xsl:with-param name="fDisabled" >
  1941. <xsl:call-template name="FFromSForm">
  1942. <xsl:with-param name="sTest" select="@disabled" />
  1943. </xsl:call-template>
  1944. </xsl:with-param>
  1945. <xsl:with-param name="tRtl" >
  1946. <xsl:call-template name="TFromSForm">
  1947. <xsl:with-param name="sTest" select="f:Text/@rtl" />
  1948. </xsl:call-template>
  1949. </xsl:with-param>
  1950. <xsl:with-param name="sText">
  1951. <xsl:value-of select="f:Text/text()" />
  1952. </xsl:with-param>
  1953. <xsl:with-param name="sAction">
  1954. <xsl:call-template name="SFormAction" />
  1955. </xsl:with-param>
  1956. </xsl:call-template>
  1957. </xsl:if>
  1958. </xsl:template>
  1959. <xsl:template match="f:Form/f:Edit | f:Frame/f:Edit">
  1960. <xsl:if test="@id and @id!=''">
  1961. <xsl:call-template name="Edit">
  1962. <xsl:with-param name="idControl" select="@id" />
  1963. <xsl:with-param name="sSubmitUrl" select="@submitUrl" />
  1964. <xsl:with-param name="sValue" select="@value" />
  1965. <xsl:with-param name="fVertical">
  1966. <xsl:choose>
  1967. <xsl:when test="f:Text/@position = 'above'">true</xsl:when>
  1968. <xsl:otherwise>false</xsl:otherwise>
  1969. </xsl:choose>
  1970. </xsl:with-param>
  1971. <xsl:with-param name="iLimit">
  1972. <xsl:choose>
  1973. <xsl:when test="@limit and @limit > 0 and @limit < 4097">
  1974. <xsl:value-of select="@limit" />
  1975. </xsl:when>
  1976. <xsl:otherwise>256</xsl:otherwise>
  1977. </xsl:choose>
  1978. </xsl:with-param>
  1979. <xsl:with-param name="iWidth">
  1980. <xsl:call-template name="IFormWidth" />
  1981. </xsl:with-param>
  1982. <xsl:with-param name="fDisabled" >
  1983. <xsl:call-template name="FFromSForm">
  1984. <xsl:with-param name="sTest" select="@disabled" />
  1985. </xsl:call-template>
  1986. </xsl:with-param>
  1987. <xsl:with-param name="fPassword" >
  1988. <xsl:call-template name="FFromSForm">
  1989. <xsl:with-param name="sTest" select="@password" />
  1990. </xsl:call-template>
  1991. </xsl:with-param>
  1992. <xsl:with-param name="tRtlControl" >
  1993. <xsl:call-template name="TFromSForm">
  1994. <xsl:with-param name="sTest" select="@rtl" />
  1995. </xsl:call-template>
  1996. </xsl:with-param>
  1997. <xsl:with-param name="tRtl" >
  1998. <xsl:call-template name="TFromSForm">
  1999. <xsl:with-param name="sTest" select="f:Text/@rtl" />
  2000. </xsl:call-template>
  2001. </xsl:with-param>
  2002. <xsl:with-param name="sText">
  2003. <xsl:apply-templates select="f:Text/text()" />
  2004. </xsl:with-param>
  2005. <xsl:with-param name="sAction">
  2006. <xsl:call-template name="SFormAction" />
  2007. </xsl:with-param>
  2008. </xsl:call-template>
  2009. </xsl:if>
  2010. </xsl:template>
  2011. <xsl:template match="f:Form/f:RadioGroup | f:Frame/f:RadioGroup">
  2012. <xsl:if test="@id and @id!=''">
  2013. <xsl:call-template name="RadioGroup">
  2014. <xsl:with-param name="pContext" select="f:Option" />
  2015. <xsl:with-param name="idControl" select="@id" />
  2016. <xsl:with-param name="sSubmitUrl" select="@submitUrl" />
  2017. <xsl:with-param name="fDisabled" >
  2018. <xsl:call-template name="FFromSForm">
  2019. <xsl:with-param name="sTest" select="@disabled" />
  2020. </xsl:call-template>
  2021. </xsl:with-param>
  2022. <xsl:with-param name="tRtl" >
  2023. <xsl:call-template name="TFromSForm">
  2024. <xsl:with-param name="sTest" select="f:Text/@rtl" />
  2025. </xsl:call-template>
  2026. </xsl:with-param>
  2027. <xsl:with-param name="tRtlGroup" >
  2028. <xsl:call-template name="TFromSForm">
  2029. <xsl:with-param name="sTest" select="@rtl" />
  2030. </xsl:call-template>
  2031. </xsl:with-param>
  2032. <xsl:with-param name="sText">
  2033. <xsl:value-of select="f:Text/text()" />
  2034. </xsl:with-param>
  2035. <xsl:with-param name="sAction">
  2036. <xsl:call-template name="SFormAction" />
  2037. </xsl:with-param>
  2038. </xsl:call-template>
  2039. </xsl:if>
  2040. </xsl:template>
  2041. <xsl:template match="f:RadioGroup/f:Option">
  2042. <xsl:param name="sAction" />
  2043. <xsl:param name="sSubmitUrl" />
  2044. <xsl:if test="@id and @id!=''">
  2045. <xsl:call-template name="RadioGroupOption">
  2046. <xsl:with-param name="idControl" select="@id" />
  2047. <xsl:with-param name="sSubmitUrl" select="$sSubmitUrl" />
  2048. <xsl:with-param name="sAction" select="$sAction" />
  2049. <xsl:with-param name="pContext" select="f:Frame" />
  2050. <xsl:with-param name="fChecked" >
  2051. <xsl:call-template name="FFromSForm">
  2052. <xsl:with-param name="sTest" select="@selected" />
  2053. </xsl:call-template>
  2054. </xsl:with-param>
  2055. <xsl:with-param name="fDisabled" >
  2056. <xsl:call-template name="FFromSForm">
  2057. <xsl:with-param name="sTest" select="@disabled" />
  2058. </xsl:call-template>
  2059. </xsl:with-param>
  2060. <xsl:with-param name="tRtl" >
  2061. <xsl:call-template name="TFromSForm">
  2062. <xsl:with-param name="sTest" select="f:Text/@rtl" />
  2063. </xsl:call-template>
  2064. </xsl:with-param>
  2065. <xsl:with-param name="sText">
  2066. <xsl:value-of select="f:Text/text()" />
  2067. </xsl:with-param>
  2068. </xsl:call-template>
  2069. </xsl:if>
  2070. </xsl:template>
  2071. <xsl:template match="f:Form/f:Checkbox | f:Frame/f:Checkbox">
  2072. <xsl:if test="@id and @id!=''">
  2073. <xsl:call-template name="CheckBox">
  2074. <xsl:with-param name="idControl" select="@id" />
  2075. <xsl:with-param name="sSubmitUrl" select="@submitUrl" />
  2076. <xsl:with-param name="pContext" select="f:Frame" />
  2077. <xsl:with-param name="fChecked" >
  2078. <xsl:call-template name="FFromSForm">
  2079. <xsl:with-param name="sTest" select="@selected" />
  2080. </xsl:call-template>
  2081. </xsl:with-param>
  2082. <xsl:with-param name="tRtl" >
  2083. <xsl:call-template name="TFromSForm">
  2084. <xsl:with-param name="sTest" select="f:Text/@rtl" />
  2085. </xsl:call-template>
  2086. </xsl:with-param>
  2087. <xsl:with-param name="fDisabled" >
  2088. <xsl:call-template name="FFromSForm">
  2089. <xsl:with-param name="sTest" select="@disabled" />
  2090. </xsl:call-template>
  2091. </xsl:with-param>
  2092. <xsl:with-param name="sText">
  2093. <xsl:value-of select="f:Text/text()" />
  2094. </xsl:with-param>
  2095. <xsl:with-param name="sAction">
  2096. <xsl:call-template name="SFormAction" />
  2097. </xsl:with-param>
  2098. </xsl:call-template>
  2099. </xsl:if>
  2100. </xsl:template>
  2101. <xsl:template match="f:Form/f:NewQuery | f:Frame/f:NewQuery">
  2102. <xsl:if test="@query != ''">
  2103. <xsl:call-template name="HyperLink">
  2104. <xsl:with-param name="sTooltip" select="@tooltip" />
  2105. <xsl:with-param name="sQuery" select="@query" />
  2106. <xsl:with-param name="fWrapping" select="'true'" />
  2107. <xsl:with-param name="sSubQuery" select="@category" />
  2108. <xsl:with-param name="sAction" >
  2109. <xsl:choose>
  2110. <xsl:when test="@action='category' or @action='auto' or @action='directed'">
  2111. <xsl:value-of select="@action" />
  2112. </xsl:when>
  2113. <xsl:otherwise>auto</xsl:otherwise>
  2114. </xsl:choose>
  2115. </xsl:with-param>
  2116. <xsl:with-param name="tRtl" >
  2117. <xsl:call-template name="TFromSForm">
  2118. <xsl:with-param name="sTest" select="f:Text/@rtl" />
  2119. </xsl:call-template>
  2120. </xsl:with-param>
  2121. <xsl:with-param name="fDisabled" >
  2122. <xsl:call-template name="FFromSForm">
  2123. <xsl:with-param name="sTest" select="@disabled" />
  2124. </xsl:call-template>
  2125. </xsl:with-param>
  2126. <xsl:with-param name="sText">
  2127. <xsl:value-of select="f:Text/text()" />
  2128. </xsl:with-param>
  2129. </xsl:call-template>
  2130. </xsl:if>
  2131. </xsl:template>
  2132. <xsl:template match="f:Form/f:Listbox | f:Frame/f:Listbox">
  2133. <xsl:if test="@id and @id!=''">
  2134. <xsl:call-template name="ListBox">
  2135. <xsl:with-param name="idControl" select="@id" />
  2136. <xsl:with-param name="sSubmitUrl" select="@submitUrl" />
  2137. <xsl:with-param name="pContext" select="f:Option" />
  2138. <xsl:with-param name="fVertical">
  2139. <xsl:choose>
  2140. <xsl:when test="f:Text/@position = 'above'">true</xsl:when>
  2141. <xsl:otherwise>false</xsl:otherwise>
  2142. </xsl:choose>
  2143. </xsl:with-param>
  2144. <xsl:with-param name="iWidth">
  2145. <xsl:call-template name="IFormWidth" />
  2146. </xsl:with-param>
  2147. <xsl:with-param name="fDropdown" >
  2148. <xsl:call-template name="FFromSForm">
  2149. <xsl:with-param name="sTest" select="@dropdown" />
  2150. <xsl:with-param name="fDefault" select="'true'" />
  2151. </xsl:call-template>
  2152. </xsl:with-param>
  2153. <xsl:with-param name="fDisabled" >
  2154. <xsl:call-template name="FFromSForm">
  2155. <xsl:with-param name="sTest" select="@disabled" />
  2156. </xsl:call-template>
  2157. </xsl:with-param>
  2158. <xsl:with-param name="tRtl" >
  2159. <xsl:call-template name="TFromSForm">
  2160. <xsl:with-param name="sTest" select="f:Text/@rtl" />
  2161. </xsl:call-template>
  2162. </xsl:with-param>
  2163. <xsl:with-param name="tRtlControl" >
  2164. <xsl:call-template name="TFromSForm">
  2165. <xsl:with-param name="sTest" select="@rtl" />
  2166. </xsl:call-template>
  2167. </xsl:with-param>
  2168. <xsl:with-param name="sText">
  2169. <xsl:value-of select="f:Text/text()" />
  2170. </xsl:with-param>
  2171. <xsl:with-param name="sAction">
  2172. <xsl:call-template name="SFormAction" />
  2173. </xsl:with-param>
  2174. </xsl:call-template>
  2175. </xsl:if>
  2176. </xsl:template>
  2177. <xsl:template match="f:Listbox/f:Option">
  2178. <xsl:if test="@id and @id!=''">
  2179. <xsl:call-template name="ListBoxOption">
  2180. <xsl:with-param name="idControl" select="@id" />
  2181. <xsl:with-param name="iLevel" select="@level" />
  2182. <xsl:with-param name="fSelected" >
  2183. <xsl:call-template name="FFromSForm">
  2184. <xsl:with-param name="sTest" select="@selected" />
  2185. </xsl:call-template>
  2186. </xsl:with-param>
  2187. <xsl:with-param name="sText">
  2188. <xsl:value-of select="f:Text" />
  2189. </xsl:with-param>
  2190. </xsl:call-template>
  2191. </xsl:if>
  2192. </xsl:template>
  2193. <xsl:template match="f:Form/f:Button | f:Frame/f:Button">
  2194. <xsl:if test="@id and @id!=''">
  2195. <xsl:call-template name="Button">
  2196. <xsl:with-param name="idControl" select="@id" />
  2197. <xsl:with-param name="sSubmitUrl" select="@submitUrl" />
  2198. <xsl:with-param name="sTooltip" select="@tooltip" />
  2199. <xsl:with-param name="sIcon" select="@icon" />
  2200. <xsl:with-param name="tRtl" >
  2201. <xsl:call-template name="TFromSForm">
  2202. <xsl:with-param name="sTest" select="f:Text/@rtl" />
  2203. </xsl:call-template>
  2204. </xsl:with-param>
  2205. <xsl:with-param name="fDisabled" >
  2206. <xsl:call-template name="FFromSForm">
  2207. <xsl:with-param name="sTest" select="@disabled" />
  2208. </xsl:call-template>
  2209. </xsl:with-param>
  2210. <xsl:with-param name="sText">
  2211. <xsl:value-of select="f:Text/text()" />
  2212. </xsl:with-param>
  2213. <xsl:with-param name="sAction">
  2214. <xsl:call-template name="SFormAction" />
  2215. </xsl:with-param>
  2216. </xsl:call-template>
  2217. </xsl:if>
  2218. </xsl:template>
  2219. <xsl:template match="f:Form">
  2220. <xsl:call-template name="Form">
  2221. <xsl:with-param name="pContext" select="f:Button | f:Edit | f:Checkbox | f:Hyperlink | f:Listbox | f:NewQuery | f:RadioGroup | f:Frame | f:Label" />
  2222. <xsl:with-param name="sRevision" select="@revision" />
  2223. <xsl:with-param name="sBuild" select="@build" />
  2224. <xsl:with-param name="tRtl" >
  2225. <xsl:call-template name="TFromSForm">
  2226. <xsl:with-param name="sTest" select="@rtl" />
  2227. </xsl:call-template>
  2228. </xsl:with-param>
  2229. <xsl:with-param name="fPropagate" >
  2230. <xsl:call-template name="FFromSForm">
  2231. <xsl:with-param name="sTest" select="@propagate" />
  2232. <xsl:with-param name="fDefault" select="'true'"/>
  2233. </xsl:call-template>
  2234. </xsl:with-param>
  2235. <xsl:with-param name="fSeparator" >
  2236. <xsl:call-template name="FFromSForm">
  2237. <xsl:with-param name="sTest" select="@separator" />
  2238. <xsl:with-param name="fDefault" select="'false'"/>
  2239. </xsl:call-template>
  2240. </xsl:with-param>
  2241. </xsl:call-template>
  2242. </xsl:template>
  2243. <xsl:template name="FFromS">
  2244. <xsl:param name="sTest" />
  2245. <xsl:param name="fDefault" />
  2246. <xsl:choose>
  2247. <xsl:when test="$sTest = 'true'  or $sTest = 1">true</xsl:when>
  2248. <xsl:when test="$sTest = 'false' or $sTest = 0">false</xsl:when>
  2249. <xsl:when test="$fDefault != ''">
  2250. <xsl:value-of select="$fDefault" />
  2251. </xsl:when>
  2252. <xsl:otherwise>false</xsl:otherwise>
  2253. </xsl:choose>
  2254. </xsl:template>
  2255. <xsl:template name="TFromS">
  2256. <xsl:param name="sTest" />
  2257. <xsl:choose>
  2258. <xsl:when test="$sTest = 'true'  or $sTest = 1">true</xsl:when>
  2259. <xsl:when test="$sTest = 'false' or $sTest = 0">false</xsl:when>
  2260. <xsl:otherwise></xsl:otherwise>
  2261. </xsl:choose>
  2262. </xsl:template>
  2263. <xsl:template match="c:Line/c:NewQuery">
  2264. <xsl:if test="@query != ''">
  2265. <xsl:call-template name="ContentNewQuery">
  2266. <xsl:with-param name="sTooltip" select="@tooltip" />
  2267. <xsl:with-param name="sQuery" select="@query" />
  2268. <xsl:with-param name="sCategory" select="@category" />
  2269. <xsl:with-param name="sFont" select="@font" />
  2270. <xsl:with-param name="sAction">
  2271. <xsl:choose>
  2272. <xsl:when test="@action='category' or @action='auto' or @action='directed'">
  2273. <xsl:value-of select="@action" />
  2274. </xsl:when>
  2275. <xsl:otherwise>auto</xsl:otherwise>
  2276. </xsl:choose>
  2277. </xsl:with-param>
  2278. <xsl:with-param name="tRtl" >
  2279. <xsl:call-template name="TFromS">
  2280. <xsl:with-param name="sTest" select="c:Text/@rtl" />
  2281. </xsl:call-template>
  2282. </xsl:with-param>
  2283. <xsl:with-param name="sText">
  2284. <xsl:value-of select="c:Text/text()" />
  2285. </xsl:with-param>
  2286. </xsl:call-template>
  2287. </xsl:if>
  2288. </xsl:template>
  2289. <xsl:template match="c:Heading/c:NewQuery | c:Content/c:NewQuery">
  2290. <xsl:if test="@query != ''">
  2291. <xsl:call-template name="ContentNewQuery">
  2292. <xsl:with-param name="sTooltip" select="@tooltip" />
  2293. <xsl:with-param name="sQuery" select="@query" />
  2294. <xsl:with-param name="sCategory" select="@category" />
  2295. <xsl:with-param name="sFont" select="@font" />
  2296. <xsl:with-param name="fWrapping" select="'true'" />
  2297. <xsl:with-param name="sAction">
  2298. <xsl:choose>
  2299. <xsl:when test="@action='category' or @action='auto' or @action='directed'">
  2300. <xsl:value-of select="@action" />
  2301. </xsl:when>
  2302. <xsl:otherwise>auto</xsl:otherwise>
  2303. </xsl:choose>
  2304. </xsl:with-param>
  2305. <xsl:with-param name="tRtl" >
  2306. <xsl:call-template name="TFromS">
  2307. <xsl:with-param name="sTest" select="c:Text/@rtl" />
  2308. </xsl:call-template>
  2309. </xsl:with-param>
  2310. <xsl:with-param name="sText">
  2311. <xsl:value-of select="c:Text/text()" />
  2312. </xsl:with-param>
  2313. </xsl:call-template>
  2314. </xsl:if>
  2315. </xsl:template>
  2316. <xsl:template match="c:Heading/c:Hyperlink | c:Content/c:Hyperlink">
  2317. <xsl:call-template name="ContentHyperLink">
  2318. <xsl:with-param name="sTooltip" select="@tooltip" />
  2319. <xsl:with-param name="sUrl" select="@url" />
  2320. <xsl:with-param name="fWrapping" select="'true'" />
  2321. <xsl:with-param name="sFont" select="@font" />
  2322. <xsl:with-param name="fPay">
  2323. <xsl:call-template name="FFromS">
  2324. <xsl:with-param name="sTest" select="@forPay"/>
  2325. </xsl:call-template>
  2326. </xsl:with-param>
  2327. <xsl:with-param name="tRtl" >
  2328. <xsl:call-template name="TFromS">
  2329. <xsl:with-param name="sTest" select="c:Text/@rtl" />
  2330. </xsl:call-template>
  2331. </xsl:with-param>
  2332. <xsl:with-param name="sText">
  2333. <xsl:value-of select="c:Text/text()" />
  2334. </xsl:with-param>
  2335. </xsl:call-template>
  2336. </xsl:template>
  2337. <xsl:template match="c:Line/c:Hyperlink">
  2338. <xsl:call-template name="ContentHyperLink">
  2339. <xsl:with-param name="sTooltip" select="@tooltip" />
  2340. <xsl:with-param name="sUrl" select="@url" />
  2341. <xsl:with-param name="fWrapping" select="'false'" />
  2342. <xsl:with-param name="sFont" select="@font" />
  2343. <xsl:with-param name="fPay">
  2344. <xsl:call-template name="FFromS">
  2345. <xsl:with-param name="sTest" select="@forPay"/>
  2346. </xsl:call-template>
  2347. </xsl:with-param>
  2348. <xsl:with-param name="tRtl" >
  2349. <xsl:call-template name="TFromS">
  2350. <xsl:with-param name="sTest" select="c:Text/@rtl" />
  2351. </xsl:call-template>
  2352. </xsl:with-param>
  2353. <xsl:with-param name="sText">
  2354. <xsl:value-of select="c:Text/text()" />
  2355. </xsl:with-param>
  2356. </xsl:call-template>
  2357. </xsl:template>
  2358. <xsl:template match="c:Heading/c:Insert | c:Content/c:Insert">
  2359. <xsl:call-template name="Insert">
  2360. <xsl:with-param name="sText">
  2361. <xsl:call-template name="ContentAction">
  2362. <xsl:with-param name="sText" select="c:Text/text()" />
  2363. <xsl:with-param name="sDefault">
  2364. <xsl:text>:rcstring(0x01800015L)</xsl:text>
  2365. </xsl:with-param>
  2366. </xsl:call-template>
  2367. </xsl:with-param>
  2368. <xsl:with-param name="psData1" select="c:Data" />
  2369. <xsl:with-param name="psData2" select="../c:P/." />
  2370. </xsl:call-template>
  2371. </xsl:template>
  2372. <xsl:template match="c:Line/c:Insert | c:P/c:Insert">
  2373. <xsl:call-template name="Insert">
  2374. <xsl:with-param name="sText">
  2375. <xsl:call-template name="ContentAction">
  2376. <xsl:with-param name="sText" select="c:Text/text()" />
  2377. <xsl:with-param name="sDefault">
  2378. <xsl:text>:rcstring(0x01800015L)</xsl:text>
  2379. </xsl:with-param>
  2380. </xsl:call-template>
  2381. </xsl:with-param>
  2382. <xsl:with-param name="psData1" select="c:Data" />
  2383. <xsl:with-param name="psData2" select="../text() | ../c:Char/text()" />
  2384. </xsl:call-template>
  2385. </xsl:template>
  2386. <xsl:template match="c:Heading/c:Copy | c:Content/c:Copy">
  2387. <xsl:call-template name="Copy">
  2388. <xsl:with-param name="sText">
  2389. <xsl:call-template name="ContentAction">
  2390. <xsl:with-param name="sText" select="c:Text/text()" />
  2391. <xsl:with-param name="sDefault">
  2392. <xsl:text>:rcstring(0x01800013L)</xsl:text>
  2393. </xsl:with-param>
  2394. </xsl:call-template>
  2395. </xsl:with-param>
  2396. <xsl:with-param name="psData1" select="c:Data" />
  2397. <xsl:with-param name="psData2" select="../c:P/." />
  2398. </xsl:call-template>
  2399. </xsl:template>
  2400. <xsl:template match="c:Line/c:Copy | c:P/c:Copy">
  2401. <xsl:call-template name="Copy">
  2402. <xsl:with-param name="sText">
  2403. <xsl:call-template name="ContentAction">
  2404. <xsl:with-param name="sText" select="c:Text/text()" />
  2405. <xsl:with-param name="sDefault">
  2406. <xsl:text>:rcstring(0x01800013L)</xsl:text>
  2407. </xsl:with-param>
  2408. </xsl:call-template>
  2409. </xsl:with-param>
  2410. <xsl:with-param name="psData1" select="c:Data" />
  2411. <xsl:with-param name="psData2" select="../text() | ../c:Char/text()" />
  2412. </xsl:call-template>
  2413. </xsl:template>
  2414. <xsl:template match="c:Heading/c:Tabular | c:Content/c:Tabular">
  2415. <xsl:call-template name="Tabular">
  2416. <xsl:with-param name="pContext" select="c:Record" />
  2417. <xsl:with-param name="sTitle" select="@title" />
  2418. </xsl:call-template>
  2419. </xsl:template>
  2420. <xsl:template match="c:Tabular/c:Record">
  2421. <xsl:call-template name="Record">
  2422. <xsl:with-param name="tRtl" >
  2423. <xsl:call-template name="TFromS">
  2424. <xsl:with-param name="sTest" select="@rtl" />
  2425. </xsl:call-template>
  2426. </xsl:with-param>
  2427. <xsl:with-param name="sName" select="c:Name/text()" />
  2428. <xsl:with-param name="fNameBold" >
  2429. <xsl:call-template name="FFromS">
  2430. <xsl:with-param name="sTest" select="c:Name/@bold" />
  2431. </xsl:call-template>
  2432. </xsl:with-param>
  2433. <xsl:with-param name="tNameRtl">
  2434. <xsl:call-template name="TFromS">
  2435. <xsl:with-param name="sTest" select="c:Name/@rtl" />
  2436. </xsl:call-template>
  2437. </xsl:with-param>
  2438. <xsl:with-param name="sValue" select="c:Value/text()" />
  2439. <xsl:with-param name="fValueBold" >
  2440. <xsl:call-template name="FFromS">
  2441. <xsl:with-param name="sTest" select="c:Value/@bold" />
  2442. </xsl:call-template>
  2443. </xsl:with-param>
  2444. <xsl:with-param name="tValueRtl">
  2445. <xsl:call-template name="TFromS">
  2446. <xsl:with-param name="sTest" select="c:Value/@rtl" />
  2447. </xsl:call-template>
  2448. </xsl:with-param>
  2449. <xsl:with-param name="fBorders">
  2450. <xsl:call-template name="FFromS">
  2451. <xsl:with-param name="sTest" select="@borders" />
  2452. <xsl:with-param name="fDefault" select="'true'" />
  2453. </xsl:call-template>
  2454. </xsl:with-param>
  2455. <xsl:with-param name="fDefaultAllowed">
  2456. <xsl:call-template name="FFromS">
  2457. <xsl:with-param name="sTest" select="c:Actions/@defaultAllowed" />
  2458. <xsl:with-param name="fDefault" select="'true'" />
  2459. </xsl:call-template>
  2460. </xsl:with-param>
  2461. <xsl:with-param name="pAction" select="c:Actions" />
  2462. <xsl:with-param name="fAction">
  2463. <xsl:if test="c:Actions/c:Insert or c:Actions/c:Copy or c:Actions/c:Hyperlink or c:Actions/c:NewQuery or c:Actions/c:Custom">true</xsl:if>
  2464. </xsl:with-param>
  2465. </xsl:call-template>
  2466. </xsl:template>
  2467. <xsl:template match="c:Line/c:Image | c:Heading/c:Image | c:Content/c:Image">
  2468. <xsl:variable name="sIcon">
  2469. <xsl:choose>
  2470. <xsl:when test="@icon='Spelling'">Spelling</xsl:when>
  2471. <xsl:when test="@icon='FileSearch'">FileSearch</xsl:when>
  2472. <xsl:when test="@icon='Research'">Research</xsl:when>
  2473. <xsl:when test="@icon='ClipArt'">ClipArt</xsl:when>
  2474. <xsl:when test="@icon='Help'">Help</xsl:when>
  2475. <xsl:when test="@icon='MSN'">MSN</xsl:when>
  2476. <xsl:when test="@icon!=''">
  2477. <xsl:value-of select="@icon" />
  2478. </xsl:when>
  2479. </xsl:choose>
  2480. </xsl:variable>
  2481. <xsl:choose>
  2482. <xsl:when test="$sIcon != ''">
  2483. <xsl:call-template name="Image">
  2484. <xsl:with-param name="sTooltip" select="@tooltip" />
  2485. <xsl:with-param name="sAltText" select="@altText" />
  2486. <xsl:with-param name="sSource" select="$sIcon" />
  2487. <xsl:with-param name="fIcon" select="'true'" />
  2488. </xsl:call-template>
  2489. </xsl:when>
  2490. <xsl:when test="@source != ''">
  2491. <xsl:call-template name="Image">
  2492. <xsl:with-param name="sTooltip" select="@tooltip" />
  2493. <xsl:with-param name="sAltText" select="@altText" />
  2494. <xsl:with-param name="sSource" select="@source" />
  2495. <xsl:with-param name="fIcon" select="'false'" />
  2496. </xsl:call-template>
  2497. </xsl:when>
  2498. </xsl:choose>
  2499. </xsl:template>
  2500. <xsl:template match="c:Line/c:Char">
  2501. <xsl:call-template name="Text">
  2502. <xsl:with-param name="tStrong" >
  2503. <xsl:call-template name="TFromS">
  2504. <xsl:with-param name="sTest" select="@bold" />
  2505. </xsl:call-template>
  2506. </xsl:with-param>
  2507. <xsl:with-param name="tEmphasis" >
  2508. <xsl:call-template name="TFromS">
  2509. <xsl:with-param name="sTest" select="@italic" />
  2510. </xsl:call-template>
  2511. </xsl:with-param>
  2512. <xsl:with-param name="tSmallcaps" >
  2513. <xsl:call-template name="TFromS">
  2514. <xsl:with-param name="sTest" select="@smallCaps" />
  2515. </xsl:call-template>
  2516. </xsl:with-param>
  2517. <xsl:with-param name="tUnderline" >
  2518. <xsl:call-template name="TFromS">
  2519. <xsl:with-param name="sTest" select="@underline" />
  2520. </xsl:call-template>
  2521. </xsl:with-param>
  2522. <xsl:with-param name="tSubscript" >
  2523. <xsl:call-template name="TFromS">
  2524. <xsl:with-param name="sTest" select="@subscript" />
  2525. </xsl:call-template>
  2526. </xsl:with-param>
  2527. <xsl:with-param name="tSuperscript" >
  2528. <xsl:call-template name="TFromS">
  2529. <xsl:with-param name="sTest" select="@superscript" />
  2530. </xsl:call-template>
  2531. </xsl:with-param>
  2532. <xsl:with-param name="tLight" >
  2533. <xsl:call-template name="TFromS">
  2534. <xsl:with-param name="sTest" select="@light" />
  2535. </xsl:call-template>
  2536. </xsl:with-param>
  2537. <xsl:with-param name="tRtl" >
  2538. <xsl:call-template name="TFromS">
  2539. <xsl:with-param name="sTest" select="@rtl" />
  2540. </xsl:call-template>
  2541. </xsl:with-param>
  2542. <xsl:with-param name="fPadding">
  2543. <xsl:choose>
  2544. <xsl:when test="position()=1">first</xsl:when>
  2545. <xsl:when test="@noPadding = 'true' or @noPadding = 1">false</xsl:when>
  2546. <xsl:otherwise>true</xsl:otherwise>
  2547. </xsl:choose>
  2548. </xsl:with-param>
  2549. <xsl:with-param name="sFont" select="@font" />
  2550. <xsl:with-param name="fWrapping" select="'false'" />
  2551. <xsl:with-param name="sText" select="./text()" />
  2552. <xsl:with-param name="sType" select="'char'" />
  2553. </xsl:call-template>
  2554. </xsl:template>
  2555. <xsl:template match="c:P/c:Char | c:Char/c:Char">
  2556. <xsl:call-template name="Text">
  2557. <xsl:with-param name="tStrong" >
  2558. <xsl:call-template name="TFromS">
  2559. <xsl:with-param name="sTest" select="@bold" />
  2560. </xsl:call-template>
  2561. </xsl:with-param>
  2562. <xsl:with-param name="tEmphasis" >
  2563. <xsl:call-template name="TFromS">
  2564. <xsl:with-param name="sTest" select="@italic" />
  2565. </xsl:call-template>
  2566. </xsl:with-param>
  2567. <xsl:with-param name="tSmallcaps" >
  2568. <xsl:call-template name="TFromS">
  2569. <xsl:with-param name="sTest" select="@smallCaps" />
  2570. </xsl:call-template>
  2571. </xsl:with-param>
  2572. <xsl:with-param name="tUnderline" >
  2573. <xsl:call-template name="TFromS">
  2574. <xsl:with-param name="sTest" select="@underline" />
  2575. </xsl:call-template>
  2576. </xsl:with-param>
  2577. <xsl:with-param name="tSubscript" >
  2578. <xsl:call-template name="TFromS">
  2579. <xsl:with-param name="sTest" select="@subscript" />
  2580. </xsl:call-template>
  2581. </xsl:with-param>
  2582. <xsl:with-param name="tSuperscript" >
  2583. <xsl:call-template name="TFromS">
  2584. <xsl:with-param name="sTest" select="@superscript" />
  2585. </xsl:call-template>
  2586. </xsl:with-param>
  2587. <xsl:with-param name="tLight" >
  2588. <xsl:call-template name="TFromS">
  2589. <xsl:with-param name="sTest" select="@light" />
  2590. </xsl:call-template>
  2591. </xsl:with-param>
  2592. <xsl:with-param name="fPadding">
  2593. <xsl:choose>
  2594. <xsl:when test="@noPadding = 'false' or @noPadding = 0">true</xsl:when>
  2595. <xsl:otherwise>false</xsl:otherwise>
  2596. </xsl:choose>
  2597. </xsl:with-param>
  2598. <xsl:with-param name="tRtl" >
  2599. <xsl:call-template name="TFromS">
  2600. <xsl:with-param name="sTest" select="@rtl" />
  2601. </xsl:call-template>
  2602. </xsl:with-param>
  2603. <xsl:with-param name="sFont" select="@font" />
  2604. <xsl:with-param name="fWrapping" select="'false'" />
  2605. <xsl:with-param name="pContext" select="text() | c:Char" />
  2606. <xsl:with-param name="sType" select="'nested'" />
  2607. </xsl:call-template>
  2608. </xsl:template>
  2609. <xsl:template match="c:Heading/c:HorizontalRule | c:Content/c:HorizontalRule">
  2610. <xsl:call-template name="HR" />
  2611. </xsl:template>
  2612. <xsl:template match="c:Heading/c:P | c:Content/c:P">
  2613. <xsl:call-template name="Text">
  2614. <xsl:with-param name="tStrong" >
  2615. <xsl:call-template name="TFromS">
  2616. <xsl:with-param name="sTest" select="@bold" />
  2617. </xsl:call-template>
  2618. </xsl:with-param>
  2619. <xsl:with-param name="tEmphasis" >
  2620. <xsl:call-template name="TFromS">
  2621. <xsl:with-param name="sTest" select="@italic" />
  2622. </xsl:call-template>
  2623. </xsl:with-param>
  2624. <xsl:with-param name="tSmallcaps" >
  2625. <xsl:call-template name="TFromS">
  2626. <xsl:with-param name="sTest" select="@smallCaps" />
  2627. </xsl:call-template>
  2628. </xsl:with-param>
  2629. <xsl:with-param name="tUnderline" >
  2630. <xsl:call-template name="TFromS">
  2631. <xsl:with-param name="sTest" select="@underline" />
  2632. </xsl:call-template>
  2633. </xsl:with-param>
  2634. <xsl:with-param name="tSubscript" >
  2635. <xsl:call-template name="TFromS">
  2636. <xsl:with-param name="sTest" select="@subscript" />
  2637. </xsl:call-template>
  2638. </xsl:with-param>
  2639. <xsl:with-param name="tSuperscript" >
  2640. <xsl:call-template name="TFromS">
  2641. <xsl:with-param name="sTest" select="@superscript" />
  2642. </xsl:call-template>
  2643. </xsl:with-param>
  2644. <xsl:with-param name="tLight" >
  2645. <xsl:call-template name="TFromS">
  2646. <xsl:with-param name="sTest" select="@light" />
  2647. </xsl:call-template>
  2648. </xsl:with-param>
  2649. <xsl:with-param name="sFont" select="@font" />
  2650. <xsl:with-param name="pContext" select="text() | c:Char" />
  2651. <xsl:with-param name="fWrapping" select="'true'" />
  2652. <xsl:with-param name="sType" select="'paragraph'" />
  2653. <xsl:with-param name="tRtl" >
  2654. <xsl:call-template name="TFromS">
  2655. <xsl:with-param name="sTest" select="@rtl" />
  2656. </xsl:call-template>
  2657. </xsl:with-param>
  2658. <xsl:with-param name="pAction" select="c:Actions | c:Copy | c:Insert" />
  2659. </xsl:call-template>
  2660. </xsl:template>
  2661. <xsl:template match="c:Heading/c:Line | c:Content/c:Line">
  2662. <xsl:call-template name="Line">
  2663. <xsl:with-param name="pContext" select="c:Char | c:Hyperlink | c:NewQuery | c:Image | c:Actions | c:Copy | c:Insert " />
  2664. <xsl:with-param name="tRtl" >
  2665. <xsl:call-template name="TFromS">
  2666. <xsl:with-param name="sTest" select="@rtl" />
  2667. </xsl:call-template>
  2668. </xsl:with-param>
  2669. </xsl:call-template>
  2670. </xsl:template>
  2671. <xsl:template match="c:Record/c:Actions">
  2672. <xsl:call-template name="ActionMatch">
  2673. <xsl:with-param name="sMode" select="'dropmenu'"/>
  2674. <xsl:with-param name="pData" select="../c:Name/. | ../c:Value/." />
  2675. <xsl:with-param name="sName" >
  2676. <xsl:value-of select="../c:Name/text()"/>
  2677. <xsl:text> </xsl:text>
  2678. <xsl:value-of select="../c:Value/text()"/>
  2679. </xsl:with-param>
  2680. </xsl:call-template>
  2681. </xsl:template>
  2682. <xsl:template match="c:Heading/c:Actions | c:Content/c:Actions">
  2683. <xsl:variable name="fDefault">
  2684. <xsl:call-template name="FFromS">
  2685. <xsl:with-param name="sTest" select="@defaultAllowed"/>
  2686. <xsl:with-param name="fDefault" select="'true'" />
  2687. </xsl:call-template>
  2688. </xsl:variable>
  2689. <xsl:call-template name="ActionMatch">
  2690. <xsl:with-param name="sMode">
  2691. <xsl:choose>
  2692. <xsl:when test="$fDefault = 'false'">menubutton</xsl:when>
  2693. <xsl:otherwise>splitdd</xsl:otherwise>
  2694. </xsl:choose>
  2695. </xsl:with-param>
  2696. <xsl:with-param name="pData" select="../c:P/." />
  2697. </xsl:call-template>
  2698. </xsl:template>
  2699. <xsl:template match="c:Line/c:Actions | c:P/c:Actions">
  2700. <xsl:variable name="fDefault">
  2701. <xsl:call-template name="FFromS">
  2702. <xsl:with-param name="sTest" select="@defaultAllowed"/>
  2703. <xsl:with-param name="fDefault" select="'true'" />
  2704. </xsl:call-template>
  2705. </xsl:variable>
  2706. <xsl:call-template name="ActionMatch">
  2707. <xsl:with-param name="sMode">
  2708. <xsl:choose>
  2709. <xsl:when test="$fDefault = 'false'">menubutton</xsl:when>
  2710. <xsl:otherwise>splitdd</xsl:otherwise>
  2711. </xsl:choose>
  2712. </xsl:with-param>
  2713. <xsl:with-param name="pData" select="../text() | ../c:Char/text()" />
  2714. <xsl:with-param name="sData">
  2715. <xsl:for-each select="../text() | ../c:Char/text()">
  2716. <xsl:value-of select="."/>
  2717. </xsl:for-each>
  2718. </xsl:with-param>
  2719. </xsl:call-template>
  2720. </xsl:template>
  2721. <xsl:template name="ActionMatch" >
  2722. <xsl:param name="sMode" />
  2723. <xsl:param name="pData" />
  2724. <xsl:param name="sData" />
  2725. <xsl:param name="sName" />
  2726. <xsl:variable name="sInsert">
  2727. <xsl:if test="c:Insert">
  2728. <xsl:call-template name="ContentAction">
  2729. <xsl:with-param name="sText" select="c:Insert/c:Text/text()" />
  2730. <xsl:with-param name="sDefault">
  2731. <xsl:text>:rcstring(0x01800014L)</xsl:text>
  2732. </xsl:with-param>
  2733. </xsl:call-template>
  2734. </xsl:if>
  2735. </xsl:variable>
  2736. <xsl:variable name="sCopy">
  2737. <xsl:if test="c:Copy">
  2738. <xsl:call-template name="ContentAction">
  2739. <xsl:with-param name="sText" select="c:Copy/c:Text/text()" />
  2740. <xsl:with-param name="sDefault">
  2741. <xsl:text>:rcstring(0x01800012L)</xsl:text>
  2742. </xsl:with-param>
  2743. </xsl:call-template>
  2744. </xsl:if>
  2745. </xsl:variable>
  2746. <xsl:variable name="fFlat">
  2747. <xsl:choose>
  2748. <xsl:when test="count(c:Custom) = '1'">true</xsl:when>
  2749. <xsl:otherwise>false</xsl:otherwise>
  2750. </xsl:choose>
  2751. </xsl:variable>
  2752. <xsl:variable name="sDefault">
  2753. <xsl:choose>
  2754. <xsl:when test="c:Insert/@default='true'    or c:Insert/@default = 1">insert</xsl:when>
  2755. <xsl:when test="c:Copy/@default='true'      or c:Copy/@default = 1">copy</xsl:when>
  2756. <xsl:when test="not(c:Insert) and not(c:Copy) and not(c:NewQuery) and not(c:Hyperlink)">none</xsl:when>
  2757. <xsl:otherwise>unknown</xsl:otherwise>
  2758. </xsl:choose>
  2759. </xsl:variable>
  2760. <xsl:if test="$sInsert!='' or $sCopy!='' or c:Hyperlink or c:NewQuery or c:Custom">
  2761. <xsl:call-template name="Actions">
  2762. <xsl:with-param name="sName"   select="$sName" />
  2763. <xsl:with-param name="sText"   select="c:Text/text()" />
  2764. <xsl:with-param name="sCopy"   select="$sCopy" />
  2765. <xsl:with-param name="sInsert" select="$sInsert" />
  2766. <xsl:with-param name="pCustom" select="c:Custom" />
  2767. <xsl:with-param name="fFlat"   select="$fFlat" />
  2768. <xsl:with-param name="pLinks"  select="c:NewQuery | c:Hyperlink" />
  2769. <xsl:with-param name="pData1"  select="c:Data" />
  2770. <xsl:with-param name="pData2"  select="$pData" />
  2771. <xsl:with-param name="sData3"  select="$sData" />
  2772. <xsl:with-param name="sMode"   select="$sMode" />
  2773. <xsl:with-param name="sDefault">
  2774. <xsl:if test="$sMode != 'menubutton'">
  2775. <xsl:value-of select="$sDefault" />
  2776. </xsl:if>
  2777. </xsl:with-param>
  2778. </xsl:call-template>
  2779. </xsl:if>
  2780. </xsl:template>
  2781. <xsl:template match="@*|node()" mode="content">
  2782. <xsl:param name="mode" />
  2783. <xsl:param name="uri" />
  2784. <xsl:choose>
  2785. <xsl:when test="$mode='copy'">
  2786. <xsl:copy>
  2787. <xsl:copy-of select="@*" />
  2788. <xsl:apply-templates mode="content">
  2789. <xsl:with-param name="mode" select="'copy'" />
  2790. <xsl:with-param name="uri" select="$uri" />
  2791. </xsl:apply-templates>
  2792. </xsl:copy>
  2793. </xsl:when>
  2794. <xsl:when test="$mode='encode'">
  2795. <xsl:choose>
  2796. <xsl:when test="local-name() != ''">
  2797. <xsl:text><</xsl:text>
  2798. <xsl:value-of select="local-name()"/>
  2799. <xsl:if test="namespace-uri() != $uri">
  2800. <xsl:text> xmlns='</xsl:text>
  2801. <xsl:value-of select="namespace-uri()"/>
  2802. <xsl:text>'</xsl:text>
  2803. </xsl:if>
  2804. <xsl:for-each select="@*">
  2805. <xsl:text> </xsl:text>
  2806. <xsl:value-of select="name()"/>
  2807. <xsl:text>='</xsl:text>
  2808. <xsl:variable name="sTmp">
  2809. <xsl:value-of select="." />
  2810. </xsl:variable>
  2811. <xsl:value-of select="translate($sTmp, '<>&', '⋘⋙⋏')" />
  2812. <xsl:text>'</xsl:text>
  2813. </xsl:for-each>
  2814. <xsl:text>></xsl:text>
  2815. <xsl:apply-templates mode="content">
  2816. <xsl:with-param name="mode" select="'encode'" />
  2817. <xsl:with-param name="uri" select="namespace-uri()"/>
  2818. </xsl:apply-templates>
  2819. <xsl:text></</xsl:text>
  2820. <xsl:value-of select="local-name()"/>
  2821. <xsl:text>></xsl:text>
  2822. </xsl:when>
  2823. <xsl:otherwise>
  2824. <xsl:variable name="sTmp">
  2825. <xsl:value-of select="." />
  2826. </xsl:variable>
  2827. <xsl:value-of select="translate($sTmp, '<>&', '⋘⋙⋏')" />
  2828. </xsl:otherwise>
  2829. </xsl:choose>
  2830. </xsl:when>
  2831. </xsl:choose>
  2832. </xsl:template>
  2833. <xsl:template match="c:Actions/c:Custom">
  2834. <xsl:param name="fFlat" />
  2835. <xsl:variable name="sXml">
  2836. <xsl:text><xml xmlns='</xsl:text>
  2837. <xsl:value-of select="namespace-uri(*)"/>
  2838. <xsl:text>'</xsl:text>
  2839. <xsl:text>></xsl:text>
  2840. <xsl:apply-templates select="*" mode="content">
  2841. <xsl:with-param name="mode" select="'encode'" />
  2842. <xsl:with-param name="uri" select="namespace-uri(*)"/>
  2843. </xsl:apply-templates>
  2844. <xsl:text></xml></xsl:text>
  2845. </xsl:variable>
  2846. <xsl:variable name="sPropBag" >
  2847. <xsl:for-each select="*/@*">
  2848. <xsl:value-of select="name()"/>
  2849. <xsl:text>='</xsl:text>
  2850. <xsl:value-of select="."/>
  2851. <xsl:text>'</xsl:text>
  2852. <xsl:text> </xsl:text>
  2853. </xsl:for-each>
  2854. </xsl:variable>
  2855. <xsl:variable name="sName">
  2856. <xsl:value-of select="local-name(*)" />
  2857. </xsl:variable>
  2858. <xsl:variable name="sXMLNS">
  2859. <xsl:value-of select="namespace-uri(*)" />
  2860. </xsl:variable>
  2861. <xsl:variable name="sTag">
  2862. <xsl:apply-templates select="*/text() | */*" mode="content">
  2863. <xsl:with-param name="mode" select="'encode'" />
  2864. <xsl:with-param name="uri" select="namespace-uri(*)"/>
  2865. </xsl:apply-templates>
  2866. </xsl:variable>
  2867. <xsl:variable name="sUrl">
  2868. <xsl:value-of select="@url" />
  2869. </xsl:variable>
  2870. <xsl:if test="$sXml != '' and $sName != '' and $sXMLNS != '' and $sTag != ''">
  2871. <xsl:call-template name="Factoid">
  2872. <xsl:with-param name="sXml" select="$sXml" />
  2873. <xsl:with-param name="sName" select="$sName" />
  2874. <xsl:with-param name="sXMLNS" select="$sXMLNS" />
  2875. <xsl:with-param name="sTag" select="$sTag" />
  2876. <xsl:with-param name="sUrl" select="$sUrl" />
  2877. <xsl:with-param name="sPropBag" select="$sPropBag" />
  2878. <xsl:with-param name="fFlat" select="$fFlat" />
  2879. <xsl:with-param name="sDisplayname">
  2880. <xsl:choose>
  2881. <xsl:when test="@displayName and @displayName != ''">
  2882. <xsl:value-of select="@displayName" />
  2883. </xsl:when>
  2884. <xsl:otherwise>
  2885. <xsl:value-of select="$sName" />
  2886. </xsl:otherwise>
  2887. </xsl:choose>
  2888. </xsl:with-param>
  2889. </xsl:call-template>
  2890. </xsl:if>
  2891. </xsl:template>
  2892. <xsl:template match="c:Actions/c:NewQuery">
  2893. <xsl:param name="fAllowed" />
  2894. <xsl:param name="mode" />
  2895. <xsl:variable name="fDefault">
  2896. <xsl:if test="$fAllowed = 'true'">
  2897. <xsl:value-of select="@default" />
  2898. </xsl:if>
  2899. </xsl:variable>
  2900. <xsl:variable name="sText">
  2901. <xsl:call-template name="ContentAction">
  2902. <xsl:with-param name="sText" select="c:Text/text()" />
  2903. <xsl:with-param name="sDefault">
  2904. <xsl:text>:rcstring(0x01800016L)</xsl:text>
  2905. </xsl:with-param>
  2906. </xsl:call-template>
  2907. </xsl:variable>
  2908. <xsl:if test="@query and @query != ''">
  2909. <xsl:call-template name="ActionNewQuery">
  2910. <xsl:with-param name="sText" select="$sText" />
  2911. <xsl:with-param name="sQuery" select="@query" />
  2912. <xsl:with-param name="sCategory" select="@category" />
  2913. <xsl:with-param name="mode" select="$mode" />
  2914. <xsl:with-param name="sAction" >
  2915. <xsl:choose>
  2916. <xsl:when test="@action='category' or @action='auto' or @action='directed'">
  2917. <xsl:value-of select="@action" />
  2918. </xsl:when>
  2919. <xsl:otherwise>auto</xsl:otherwise>
  2920. </xsl:choose>
  2921. </xsl:with-param>
  2922. <xsl:with-param name="fDefault">
  2923. <xsl:call-template name="FFromS">
  2924. <xsl:with-param name="sTest" select="$fDefault" />
  2925. </xsl:call-template>
  2926. </xsl:with-param>
  2927. <xsl:with-param name="fNoIcon">
  2928. <xsl:call-template name="FFromS">
  2929. <xsl:with-param name="sTest" select="@noIcon" />
  2930. </xsl:call-template>
  2931. </xsl:with-param>
  2932. </xsl:call-template>
  2933. </xsl:if>
  2934. </xsl:template>
  2935. <xsl:template match="c:Actions/c:Hyperlink">
  2936. <xsl:param name="fAllowed" />
  2937. <xsl:param name="mode" />
  2938. <xsl:variable name="fDefault">
  2939. <xsl:if test="$fAllowed = 'true'">
  2940. <xsl:value-of select="@default" />
  2941. </xsl:if>
  2942. </xsl:variable>
  2943. <xsl:variable name="sText">
  2944. <xsl:call-template name="ContentAction">
  2945. <xsl:with-param name="sText" select="c:Text/text()" />
  2946. <xsl:with-param name="sDefault">
  2947. <xsl:text>:rcstring(0x01800017L)</xsl:text>
  2948. </xsl:with-param>
  2949. </xsl:call-template>
  2950. </xsl:variable>
  2951. <xsl:if test="@url and @url != ''">
  2952. <xsl:call-template name="ActionHyperlink">
  2953. <xsl:with-param name="sText" select="$sText" />
  2954. <xsl:with-param name="sUrl" select="@url" />
  2955. <xsl:with-param name="mode" select="$mode" />
  2956. <xsl:with-param name="fDefault">
  2957. <xsl:call-template name="FFromS">
  2958. <xsl:with-param name="sTest" select="$fDefault" />
  2959. </xsl:call-template>
  2960. </xsl:with-param>
  2961. <xsl:with-param name="fNoIcon">
  2962. <xsl:call-template name="FFromS">
  2963. <xsl:with-param name="sTest" select="@noIcon" />
  2964. </xsl:call-template>
  2965. </xsl:with-param>
  2966. <xsl:with-param name="fPay">
  2967. <xsl:call-template name="FFromS">
  2968. <xsl:with-param name="sTest" select="@forPay" />
  2969. </xsl:call-template>
  2970. </xsl:with-param>
  2971. </xsl:call-template>
  2972. </xsl:if>
  2973. </xsl:template>
  2974. <xsl:template name="ContentAction">
  2975. <xsl:param name="sText" />
  2976. <xsl:param name="sDefault" />
  2977. <xsl:choose>
  2978. <xsl:when test="$sText != ''">
  2979. <xsl:value-of select="$sText" />
  2980. </xsl:when>
  2981. <xsl:otherwise>
  2982. <xsl:value-of select="$sDefault" />
  2983. </xsl:otherwise>
  2984. </xsl:choose>
  2985. </xsl:template>
  2986. <xsl:template match="c:Content/c:Heading | c:Heading/c:Heading">
  2987. <xsl:param name="iLevel" />
  2988. <xsl:variable name="iLevelNew">
  2989. <xsl:choose>
  2990. <xsl:when test="@level < 5 and @level > 0 and @level > $iLevel">
  2991. <xsl:value-of select="@level + 1" />
  2992. </xsl:when>
  2993. <xsl:otherwise>
  2994. <xsl:value-of select="$iLevel + 1" />
  2995. </xsl:otherwise>
  2996. </xsl:choose>
  2997. </xsl:variable>
  2998. <xsl:variable name="sText">
  2999. <xsl:value-of select="c:Text/text()" />
  3000. </xsl:variable>
  3001. <xsl:choose>
  3002. <xsl:when test="$sText != ''">
  3003. <xsl:call-template name="Heading">
  3004. <xsl:with-param name="iLevel" select="$iLevelNew" />
  3005. <xsl:with-param name="pContext" select="c:P | c:Line | c:Heading | c:Hyperlink | c:Tabular | c:Image | c:NewQuery | c:HorizontalRule" />
  3006. <xsl:with-param name="sText" select="$sText" />
  3007. <xsl:with-param name="pAction" select="c:Actions | c:Copy | c:Insert" />
  3008. <xsl:with-param name="tCollapsible">
  3009. <xsl:choose>
  3010. <xsl:when test="count(*) > 1">
  3011. <xsl:call-template name="FFromS">
  3012. <xsl:with-param name="sTest" select="@collapsible" />
  3013. <xsl:with-param name="fDefault" select="'true'" />
  3014. </xsl:call-template>
  3015. </xsl:when>
  3016. <xsl:otherwise>
  3017. <xsl:text>false</xsl:text>
  3018. </xsl:otherwise>
  3019. </xsl:choose>
  3020. </xsl:with-param>
  3021. <xsl:with-param name="tCollapsed" >
  3022. <xsl:call-template name="FFromS">
  3023. <xsl:with-param name="sTest" select="@collapsed" />
  3024. </xsl:call-template>
  3025. </xsl:with-param>
  3026. <xsl:with-param name="tRtl" >
  3027. <xsl:call-template name="TFromS">
  3028. <xsl:with-param name="sTest" select="c:Text/@rtl" />
  3029. </xsl:call-template>
  3030. </xsl:with-param>
  3031. <xsl:with-param name="cLevelSkipped" select="$iLevelNew - $iLevel - 1" />
  3032. </xsl:call-template>
  3033. </xsl:when>
  3034. <xsl:otherwise>
  3035. <xsl:apply-templates select="c:P | c:Line | c:Heading | c:Hyperlink | c:Tabular | c:Image | c:NewQuery | c:HorizontalRule">
  3036. <xsl:with-param name="iLevel" select="$iLevelNew" />
  3037. </xsl:apply-templates>
  3038. </xsl:otherwise>
  3039. </xsl:choose>
  3040. </xsl:template>
  3041. <xsl:template match="c:Content">
  3042. <xsl:call-template name="Result">
  3043. <xsl:with-param name="pContext" select="c:P | c:Line | c:Heading | c:Hyperlink | c:Tabular | c:Image | c:NewQuery | c:Actions | c:Copy | c:Insert | c:HorizontalRule" />
  3044. <xsl:with-param name="sRevision" select="@revision" />
  3045. <xsl:with-param name="sBuild" select="@build" />
  3046. <xsl:with-param name="tRtl">
  3047. <xsl:call-template name="TFromS">
  3048. <xsl:with-param name="sTest" select="@rtl" />
  3049. </xsl:call-template>
  3050. </xsl:with-param>
  3051. </xsl:call-template>
  3052. </xsl:template>
  3053. <xsl:template match="@*|node()" mode="document">
  3054. <xsl:param name="mode" />
  3055. <xsl:param name="uri" />
  3056. <xsl:choose>
  3057. <xsl:when test="$mode='copy'">
  3058. <xsl:copy>
  3059. <xsl:copy-of select="@*" />
  3060. <xsl:apply-templates mode="document">
  3061. <xsl:with-param name="mode" select="'copy'" />
  3062. <xsl:with-param name="uri" select="$uri" />
  3063. </xsl:apply-templates>
  3064. </xsl:copy>
  3065. </xsl:when>
  3066. <xsl:when test="$mode='encode'">
  3067. <xsl:choose>
  3068. <xsl:when test="name() != ''">
  3069. <xsl:text><</xsl:text>
  3070. <xsl:value-of select="name()"/>
  3071. <xsl:if test="namespace-uri() != $uri">
  3072. <xsl:text> xmlns='</xsl:text>
  3073. <xsl:value-of select="namespace-uri()"/>
  3074. <xsl:text>'</xsl:text>
  3075. </xsl:if>
  3076. <xsl:for-each select="@*">
  3077. <xsl:text> </xsl:text>
  3078. <xsl:value-of select="name()"/>
  3079. <xsl:text>='</xsl:text>
  3080. <xsl:variable name="sTmp">
  3081. <xsl:value-of select="." />
  3082. </xsl:variable>
  3083. <xsl:value-of select="translate($sTmp, '<>&', '⋘⋙⋏')" />
  3084. <xsl:text>'</xsl:text>
  3085. </xsl:for-each>
  3086. <xsl:text>></xsl:text>
  3087. <xsl:apply-templates mode="document">
  3088. <xsl:with-param name="mode" select="'encode'" />
  3089. <xsl:with-param name="uri" select="namespace-uri()"/>
  3090. </xsl:apply-templates>
  3091. <xsl:text></</xsl:text>
  3092. <xsl:value-of select="name()"/>
  3093. <xsl:text>></xsl:text>
  3094. </xsl:when>
  3095. <xsl:otherwise>
  3096. <xsl:variable name="sTmp">
  3097. <xsl:value-of select="." />
  3098. </xsl:variable>
  3099. <xsl:value-of select="translate($sTmp, '<>&', '⋘⋙⋏')" />
  3100. </xsl:otherwise>
  3101. </xsl:choose>
  3102. </xsl:when>
  3103. </xsl:choose>
  3104. </xsl:template>
  3105. <xsl:template match="d:Document">
  3106. <xsl:variable name="sDisplayUrl">
  3107. <xsl:choose>
  3108. <xsl:when test="d:DisplayUrl and d:DisplayUrl/text() != ''">
  3109. <xsl:value-of select="d:DisplayUrl/text()"/>
  3110. </xsl:when>
  3111. <xsl:when test="d:DestinationUrl">
  3112. <xsl:value-of select="d:DestinationUrl/text()" />
  3113. </xsl:when>
  3114. <xsl:otherwise>
  3115. <xsl:value-of select="d:Action/d:LinkUrl/text()"/>
  3116. </xsl:otherwise>
  3117. </xsl:choose>
  3118. </xsl:variable>
  3119. <xsl:variable name="fForPay">
  3120. <xsl:choose>
  3121. <xsl:when test="d:Action/d:LinkUrl/@forPay = 'true' or d:Action/d:LinkUrl/@forPay = '1'">true</xsl:when>
  3122. <xsl:otherwise>false</xsl:otherwise>
  3123. </xsl:choose>
  3124. </xsl:variable>
  3125. <xsl:variable name="sDestination">
  3126. <xsl:choose>
  3127. <xsl:when test="d:DestinationUrl">
  3128. <xsl:value-of select="d:DestinationUrl/text()" />
  3129. </xsl:when>
  3130. <xsl:otherwise>
  3131. <xsl:value-of select="d:Action/d:LinkUrl/text()"/>
  3132. </xsl:otherwise>
  3133. </xsl:choose>
  3134. </xsl:variable>
  3135. <xsl:variable name="sImage">
  3136. <xsl:if test="d:Media and d:Media/@type='IMAGE'" >
  3137. <xsl:value-of select="d:Media/d:SrcUrl/." />
  3138. </xsl:if>
  3139. </xsl:variable>
  3140. <xsl:call-template name="Document">
  3141. <xsl:with-param name="sTitle" select="d:Title/text()" />
  3142. <xsl:with-param name="sDescription" select="d:Description/text()" />
  3143. <xsl:with-param name="sUrlDisplay" select="$sDisplayUrl" />
  3144. <xsl:with-param name="sUrlDestination" select="$sDestination" />
  3145. <xsl:with-param name="sUrlLink" select="d:Action/d:LinkUrl/text()" />
  3146. <xsl:with-param name="sUrlExtension" select="d:Action/d:LinkUrl/@fileExt" />
  3147. <xsl:with-param name="pRequery" select="d:Action/d:RequeryContext/*" />
  3148. <xsl:with-param name="sImage" select="$sImage" />
  3149. <xsl:with-param name="sImageAltText" select="d:Media/d:AltText/text()" />
  3150. <xsl:with-param name="fForPay" select="$fForPay" />
  3151. <xsl:with-param name="tRtl">
  3152. <xsl:choose>
  3153. <xsl:when test="d:Description/@rtl = 'true'  or d:Description/@rtl = '1'">true</xsl:when>
  3154. <xsl:when test="d:Description/@rtl = 'false' or d:Description/@rtl = '0'">false</xsl:when>
  3155. </xsl:choose>
  3156. </xsl:with-param>
  3157. </xsl:call-template>
  3158. </xsl:template>
  3159. <xsl:template match="@*|node()" mode="response">
  3160. <xsl:param name="mode" />
  3161. <xsl:param name="uri" />
  3162. <xsl:choose>
  3163. <xsl:when test="$mode='copy'"><xsl:copy>
  3164. <xsl:copy-of select="@*" />
  3165. <xsl:apply-templates mode="response">
  3166. <xsl:with-param name="mode" select="'copy'" />
  3167. <xsl:with-param name="uri" select="$uri" />
  3168. </xsl:apply-templates>
  3169. </xsl:copy>
  3170. </xsl:when>
  3171. <xsl:when test="$mode='encode'">
  3172. <xsl:choose>
  3173. <xsl:when test="local-name() != ''">
  3174. <xsl:text><</xsl:text>
  3175. <xsl:value-of select="local-name()"/>
  3176. <xsl:if test="namespace-uri() != $uri">
  3177. <xsl:text> xmlns='</xsl:text>
  3178. <xsl:value-of select="namespace-uri()"/>
  3179. <xsl:text>'</xsl:text>
  3180. </xsl:if>
  3181. <xsl:for-each select="@*">
  3182. <xsl:text> </xsl:text>
  3183. <xsl:value-of select="local-name()"/>
  3184. <xsl:text>='</xsl:text>
  3185. <xsl:variable name="sTmp">
  3186. <xsl:value-of select="." />
  3187. </xsl:variable>
  3188. <xsl:value-of select="translate($sTmp, '<>&', '⋘⋙⋏')" />
  3189. <xsl:text>'</xsl:text>
  3190. </xsl:for-each>
  3191. <xsl:text>></xsl:text>
  3192. <xsl:apply-templates mode="response">
  3193. <xsl:with-param name="mode" select="'encode'" />
  3194. <xsl:with-param name="uri" select="namespace-uri()"/>
  3195. </xsl:apply-templates>
  3196. <xsl:text></</xsl:text>
  3197. <xsl:value-of select="local-name()"/>
  3198. <xsl:text>></xsl:text>
  3199. </xsl:when>
  3200. <xsl:otherwise>
  3201. <xsl:variable name="sTmp">
  3202. <xsl:value-of select="." />
  3203. </xsl:variable>
  3204. <xsl:value-of select="translate($sTmp, '<>&', '⋘⋙⋏')" />
  3205. </xsl:otherwise>
  3206. </xsl:choose>
  3207. </xsl:when>
  3208. </xsl:choose>
  3209. </xsl:template>
  3210. <xsl:template match="r:Response/r:Status">
  3211. <xsl:param name="idService" />
  3212. <xsl:variable name="sStatus">
  3213. <xsl:value-of select="./text()"/>
  3214. </xsl:variable>
  3215. <xsl:call-template name="Status">
  3216. <xsl:with-param name="sStatus" select="$sStatus" />
  3217. <xsl:with-param name="idService" select="$idService" />
  3218. </xsl:call-template>
  3219. </xsl:template>
  3220. <xsl:template name="ResponseResults">
  3221. <xsl:param name="idService" />
  3222. <xsl:param name="iStart" />
  3223. <xsl:param name="cSize" />
  3224. <xsl:param name="cMax" />
  3225. <xsl:param name="iCaller" />
  3226. <xsl:choose>
  3227. <xsl:when test="$iCaller = 1">
  3228. <xsl:if test="$cSize != '' and $cSize != '0'">
  3229. <xsl:call-template name="RangeNavigation">
  3230. <xsl:with-param name="iStart" select="$iStart" />
  3231. <xsl:with-param name="cSize" select="$cSize" />
  3232. <xsl:with-param name="cMax" select="$cMax" />
  3233. <xsl:with-param name="idService" select="$idService" />
  3234. <xsl:with-param name="sPosition" select="'top'" />
  3235. </xsl:call-template>
  3236. </xsl:if>
  3237. <xsl:apply-templates select="f:Form" />
  3238. </xsl:when>
  3239. <xsl:when test="$iCaller = 2">
  3240. <xsl:if test="$cSize != '' and $cSize != '0'">
  3241. <xsl:call-template name="RangeNavigation">
  3242. <xsl:with-param name="iStart" select="$iStart" />
  3243. <xsl:with-param name="cSize" select="$cSize" />
  3244. <xsl:with-param name="cMax" select="$cMax" />
  3245. <xsl:with-param name="idService" select="$idService" />
  3246. <xsl:with-param name="sPosition" select="'middle'" />
  3247. </xsl:call-template>
  3248. </xsl:if>
  3249. <xsl:apply-templates select="c:Content | d:Document" />
  3250. <xsl:if test="$cSize != '' and $cSize != '0'">
  3251. <xsl:call-template name="RangeNavigation">
  3252. <xsl:with-param name="iStart" select="$iStart" />
  3253. <xsl:with-param name="cSize" select="$cSize" />
  3254. <xsl:with-param name="cMax" select="$cMax" />
  3255. <xsl:with-param name="idService" select="$idService" />
  3256. <xsl:with-param name="sPosition" select="'bottom'" />
  3257. </xsl:call-template>
  3258. </xsl:if>
  3259. </xsl:when>
  3260. </xsl:choose>
  3261. </xsl:template>
  3262. <xsl:template match="r:Range/r:Results">
  3263. <xsl:param name="idService" />
  3264. <xsl:param name="sStatus" />
  3265. <xsl:param name="pOriginator" />
  3266. <xsl:param name="fAlwaysSearched" />
  3267. <xsl:param name="iStart" />
  3268. <xsl:param name="cSize" />
  3269. <xsl:param name="cMax" />
  3270. <xsl:call-template name="ServiceResult">
  3271. <xsl:with-param name="idService" select="$idService" />
  3272. <xsl:with-param name="spCallback" select="'ResponseResults'" />
  3273. <xsl:with-param name="sStatus" select="$sStatus" />
  3274. <xsl:with-param name="pOriginator" select="$pOriginator" />
  3275. <xsl:with-param name="iStart" select="$iStart" />
  3276. <xsl:with-param name="cSize" select="$cSize" />
  3277. <xsl:with-param name="cMax" select="$cMax" />
  3278. <xsl:with-param name="fAlwaysSearched" select="$fAlwaysSearched" />
  3279. </xsl:call-template>
  3280. </xsl:template>
  3281. <xsl:template match="r:Response/r:Range">
  3282. <xsl:param name="idService"/>
  3283. <xsl:param name="sStatus" />
  3284. <xsl:param name="pOriginator" />
  3285. <xsl:param name="fAlwaysSearched" />
  3286. <xsl:variable name="iStart" >
  3287. <xsl:if test="number(r:StartAt/text()) and r:StartAt/text() > 0">
  3288. <xsl:value-of select="r:StartAt/text()" />
  3289. </xsl:if>
  3290. </xsl:variable>
  3291. <xsl:variable name="cSize" >
  3292. <xsl:if test="number(r:Count/text()) and r:Count/text() > 0">
  3293. <xsl:value-of select="r:Count/text()" />
  3294. </xsl:if>
  3295. </xsl:variable>
  3296. <xsl:variable name="cMax" >
  3297. <xsl:if test="number(r:TotalAvailable/text()) and r:TotalAvailable/text() > 0">
  3298. <xsl:value-of select="r:TotalAvailable/text()" />
  3299. </xsl:if>
  3300. </xsl:variable>
  3301. <xsl:call-template name="Range">
  3302. <xsl:with-param name="pContext" select="r:Results" />
  3303. <xsl:with-param name="idService" select="$idService" />
  3304. <xsl:with-param name="iStart" select="$iStart" />
  3305. <xsl:with-param name="cSize" select="$cSize" />
  3306. <xsl:with-param name="cMax" select="$cMax" />
  3307. <xsl:with-param name="sStatus" select="$sStatus" />
  3308. <xsl:with-param name="pOriginator" select="$pOriginator" />
  3309. <xsl:with-param name="fAlwaysSearched" select="$fAlwaysSearched" />
  3310. </xsl:call-template>
  3311. </xsl:template>
  3312. <xsl:template match="/r:Response">
  3313. <xsl:variable name="iStart" >
  3314. <xsl:if test="number(r:Range/r:StartAt/text()) and r:Range/r:StartAt/text() > 0">
  3315. <xsl:value-of select="r:Range/r:StartAt/text()" />
  3316. </xsl:if>
  3317. </xsl:variable>
  3318. <xsl:variable name="cSize" >
  3319. <xsl:if test="number(r:Range/r:Count/text()) and r:Range/r:Count/text() > 0">
  3320. <xsl:value-of select="r:Range/r:Count/text()" />
  3321. </xsl:if>
  3322. </xsl:variable>
  3323. <xsl:variable name="cMax" >
  3324. <xsl:if test="number(r:Range/r:TotalAvailable/text()) and r:Range/r:TotalAvailable/text() > 0">
  3325. <xsl:value-of select="r:Range/r:TotalAvailable/text()" />
  3326. </xsl:if>
  3327. </xsl:variable>
  3328. <xsl:call-template name="Range">
  3329. <xsl:with-param name="pContext" select="r:Range/r:Results" />
  3330. <xsl:with-param name="idService" select="@domain" />
  3331. <xsl:with-param name="iStart" select="$iStart" />
  3332. <xsl:with-param name="cSize" select="$cSize" />
  3333. <xsl:with-param name="cMax" select="$cMax" />
  3334. </xsl:call-template>
  3335. </xsl:template>
  3336. <xsl:template match="r:ResponsePacket/r:Response">
  3337. <xsl:variable name="sStatus">
  3338. <xsl:value-of select="r:Status/text()" />
  3339. </xsl:variable>
  3340. <xsl:variable name="fAlwaysSearched"><xsl:choose>
  3341. <xsl:when test="@category = 'always_searched'">true</xsl:when>
  3342. <xsl:otherwise>false</xsl:otherwise>
  3343. </xsl:choose>
  3344. </xsl:variable>
  3345. <xsl:choose>
  3346. <xsl:when test="$sStatus='SUCCESS'">
  3347. <xsl:call-template name="QueryResponse">
  3348. <xsl:with-param name="pContext" select="r:Range" />
  3349. <xsl:with-param name="idService" select="@domain" />
  3350. <xsl:with-param name="fRequery" select="'false'" />
  3351. <xsl:with-param name="pOriginator" select="r:RequeryContext/*" />
  3352. <xsl:with-param name="sStatus" select="$sStatus" />
  3353. <xsl:with-param name="fAlwaysSearched" select="$fAlwaysSearched" />
  3354. </xsl:call-template>
  3355. </xsl:when>
  3356. <xsl:otherwise>
  3357. <xsl:call-template name="ServiceResult">
  3358. <xsl:with-param name="idService" select="@domain" />
  3359. <xsl:with-param name="sStatus" select="$sStatus" />
  3360. <xsl:with-param name="pOriginator" select="r:RequeryContext/*" />
  3361. <xsl:with-param name="fAlwaysSearched" select="$fAlwaysSearched" />
  3362. </xsl:call-template>
  3363. </xsl:otherwise>
  3364. </xsl:choose>
  3365. </xsl:template>
  3366. <xsl:template match="/r:ResponsePacket">
  3367. <xsl:choose>
  3368. <xsl:when test="r:Response">
  3369. <xsl:call-template name="NewQueryResponse">
  3370. <xsl:with-param name="pContext" select="r:Response" />
  3371. <xsl:with-param name="sRevision" select="@revision" />
  3372. <xsl:with-param name="sBuild" select="@build" />
  3373. </xsl:call-template>
  3374. </xsl:when>
  3375. <xsl:otherwise>
  3376. <xsl:call-template name="ServiceResult">
  3377. <xsl:with-param name="idService" select="''" />
  3378. <xsl:with-param name="sStatus" select="'ERROR_BAD_RESULTS'" />
  3379. <xsl:with-param name="fAlwaysSearched" select="'false'" />
  3380. </xsl:call-template>
  3381. </xsl:otherwise>
  3382. </xsl:choose>
  3383. </xsl:template>
  3384. <xsl:output method="xml" />
  3385. <xsl:template match="/">
  3386. <xsl:apply-templates select="/r:ResponsePacket" />
  3387. </xsl:template>
  3388. </xsl:stylesheet>
  3389.